perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.65k stars 1.56k forks source link

request.queryParams() and request.body() cannot be used together? #905

Closed fquirin closed 7 years ago

fquirin commented 7 years ago

Maybe this behaviour is expected, but at least to me it was a massive time-killer yesterday. Here is what happened:

Outcome is that in the 2nd endpoint request.body() will show the correct body but no query params and in the 1st one request.body() will be empty but queryParams correct.

tipsy commented 7 years ago

Thanks, we're aware of the issue (#900 #666)