vert-x3 / issues

Apache License 2.0
36 stars 7 forks source link

Can not get request parameter #542

Closed vinhio closed 3 years ago

vinhio commented 3 years ago

I create a post/route with request path /login. But at server-side can not get request parameter. Please see the image

2020-08-08_19-58

tsegismont commented 3 years ago

Can you share some code and shell commands so that we can try to spot the issue? Screenshots in general are useless.

parit commented 3 years ago

so this is for 3.7.1 I think it is same for future versions but you need to use BodyHandler.create().setMergeFormAttributes(true) as a handler for your post requests first and then you can use request.params()

pmlopes commented 3 years ago

Yes, you're missing the BodyHandler.create(), the merge form attributes is true by default, so in this case it has no effect.