You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Content-Length Header in Requests must be UpperFirst-ed.
content-length will make the server parse an empty request body.
Content-Length in upper first, will work correctly.
The problem is that if you are using tools like Postman, the header regarding the length of the body, is automatically written by the tool (in my case Postman writes it in lower case).
I fixed it editing my local file httplib.h at line 511, in this way
auto len = get_header_value_int(x.headers, "Content-Length", 0);
if(!len)
len = get_header_value_int(x.headers, "content-length", 0);
The text was updated successfully, but these errors were encountered:
The Content-Length Header in Requests must be UpperFirst-ed.
content-length will make the server parse an empty request body.
Content-Length in upper first, will work correctly.
The problem is that if you are using tools like Postman, the header regarding the length of the body, is automatically written by the tool (in my case Postman writes it in lower case).
I fixed it editing my local file httplib.h at line 511, in this way
The text was updated successfully, but these errors were encountered: