bat icon indicating copy to clipboard operation
bat copied to clipboard

Header value misinterpreted as query param

Open veegee opened this issue 8 years ago • 1 comments

When specifying a header option whose value ends with an =, bat incorrectly interprets that as a query param, even when escaped.

➜ bat GET :8001/v1/me/entity 'X-APIKey:asdfasdfa\='
GET /v1/me/entity?X-APIKey%3Aasdfasdfa%5C= HTTP/1.1
Host: localhost:8001
Accept: application/json
Accept-Encoding: gzip, deflate
User-Agent: bat/0.1.0

veegee avatar Dec 13 '15 03:12 veegee

unfortunately this pr breaks queries with ":" into headers. I cannot think of away to fixes this without completely changing the parsing :weary:

ghost avatar Mar 31 '16 14:03 ghost