You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the library is discarding the data field when making GET requests. I understand that this doesn't really conform to the older RFC2616 spec but some http clients can do it e.g. curl and python's requests.
How to reproduce
$ nc -l 4242
requests.get("http://localhost:4242", data ="lol")
It seems like the library is discarding the
data
field when makingGET
requests. I understand that this doesn't really conform to the older RFC2616 spec but some http clients can do it e.g. curl and python's requests.How to reproduce
What is expected
nc
should be printing this:What actually happens
Instead
nc
prints the request without the body.Fix?
I think this line here is the culprit but I'm not sure why
GET
wasn't included in the if condition in the first place. https://github.com/com-lihaoyi/requests-scala/blob/master/requests/src/requests/Requester.scala#L254Maybe we could add
GET
to it?The text was updated successfully, but these errors were encountered: