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
post request params broken #257
Comments
Now this is strange, all the specs are passing 😢 |
My mother always says "don't trust the specs". |
I can confirm this is broken.
I suspect this has to do with Crystal now supporting streaming... |
(note: for now, one can use this but really I hope we get a cleaner fix ;) )
|
This is now fixed 👍 Thanks everyone for reporting ❤️ |
❤️S❤️E❤️R❤️D❤️A❤️R❤️ ❤️D❤️O❤️G❤️R❤️U❤️Y❤️O❤️L❤️ |
what about spec? |
@kostya the specs are correct, this was due to a behaviour change in |
I think Kostya was asking whether you are going to add a test case for params.body to the specs. |
Ooh, nice. |
this is unit test, i think better to add integration test also, run http server, and run requests. in crystal its quite easy. i do it in many projects. example in msgpack: https://github.com/benoist/msgpack-crystal/blob/master/spec/socket_spec.cr#L15 |
Thanks, Serdar. That was definitely a nitpick 👍 |
FWIW this should also work:
However the first example and this one both fail currently...it gives empty |
OK after some research it appears that |
seems this is after crystal update.
curl -s http://127.0.0.1:3000/bla -X POST --data 'x%3D1'
curl -s http://127.0.0.1:3000/bla -X POST --data 'x=1'
nil
nil
works in previous crystal, kemal
The text was updated successfully, but these errors were encountered: