daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
778 stars 80 forks source link

get_body_as_string() returns newlines. #167

Closed Meaxis closed 4 years ago

Meaxis commented 4 years ago

When using the function get_body_as_string(), the result is returned with several newlines.


[body]
daurnimator commented 4 years ago

This would only occur if your server is sending the additional new lines... in which case, it probably wants you to have them.

Meaxis commented 4 years ago

I think you’re right, will update you.

Edit: tried replying to this from the email. sorry for the weird response.

Meaxis commented 4 years ago

Yep. That was my server. Sorry :/