cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Client header spaces inconsistent

Open 2stein57 opened this issue 3 years ago • 0 comments

Example header generated by cpprest:

Host: 10.32.8.51
Content-Length:130
Content-Type:application/json
User-Agent:cpprestsdk/2.10.18
Authorization: Basic YWRtaW46cGFzcw==
Connection: Keep-Alive

For some header values, there is a space, for others, not.

Having no space is allowed by the RFCs, but is definitely not common practice. Some older webserver just don't support it. I suggest using spaces all the time for highest compatibility.

2stein57 avatar Sep 28 '22 11:09 2stein57