-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix httpc bodyless methods #550
fix httpc bodyless methods #550
Conversation
Currently we are creating a request with body and content_type in many cases for methods that can't support it. Httpc doesn't know what to do an outputs a function match error.
I remember some discussions about it, and I remember something around the point of "HTTP" spec technically allowing a body. @teamon I am gonna need your help in terms of what we should do here, I feel we should merge it, but still, different clients do different things so a bit tricky. |
@yordis didn't know before this that GET could contain a body and I used to use telnet to send request for fun. The reason why I implemented this is because httpc can't contain a body for anything but post, put, patch, and delete. Reading more into the links provided where they mention that servers can reject the request sometimes with the body. It's an edge case but if we really do want to support it we will have to patch httpc to be able to support it. Reading through the source code of hackney they do seem to support it for some times of body requests but not others. |
I know you are 100% right on this one, httpc would need to fix their stuff. So I guess people must be aware of such technicality, otherwise 🤷🏻 |
CI keeps failing 😢 |
Yeah don't know why the tests are trying to access priv directly and not through |
I sound really judgemental 😁, I came to Elixir through Erlang ( was still getting tripped up by it's syntax ). So I've been exposed to a lot of the old best practices. |
😭 |
There is at least one flaky test |
I remember something about a flaky test for sure! |
Currently we are creating a request with body and content_type in many cases for methods that can't support it. Httpc doesn't know what to do an outputs a function match error.