WeihanLi/dotnet-httpie

Invalid request behavior when there's query string in the request URL

Closed this issue · 0 comments

Describe the bug

When there's query string in the request URL, wrong HTTP method fired

To Reproduce

Steps to reproduce the behavior:

http get "https://reservation.weihanli.xyz/health?Page=1&Platform=3&Module=homepageBannerPrimary&Language=en-US&Country=CN&track=newLangTest" -v

Output

POST /health?Page=1&Platform=3&Module=homepageBannerPrimary&Language=en-US&Country=CN&track=newLangTest HTTP/1.1
Host: reservation.weihanli.xyz
Schema: https
Content-Type: application/json;charset=utf-8
User-Agent: dotnet-HTTPie/0.1.1

{"https://reservation.weihanli.xyz/health?Page":"1&Platform=3&Module=homepageBannerPrimary&Language=en-US&Country=CN&track=newLangTest"}

HTTP/1.1 200 OK
Connection: keep-alive
Date: Tue, 10 Aug 2021 08:04:11 GMT
Server: nginx/1.14.1
Transfer-Encoding: chunked

healthy

Expected behavior

Send HTTP GET request without a request body

Additional context

Version: 0.1.1-preview-20210804-003845