When I use restclient with Content-Type: application/x-www-form-urlencoded
, restclient sends newlines with the data.
For example:
POST :domain/thing
Content-Type: application/x-www-form-urlencoded
data=foobar
The endpoint receives a form with the value 'data': 'foobar\n'
.
I could modify require-final-newline
such that the last query in the file would work properly, but since requests are separated by comment lines, I still get the extra newlines for all preceding requests.
How can I get restclient to pass the forms correctly?