suppress static, so it work more thazn one time
uses char instead of int

credit to https://github.com/salanki
Uses \r\n instead of only \n in the HTTP headers, this is needed for some HTTP implementations
For example: Thin for Ruby users. Credit to https://github.com/salanki

Adjust Content-Length and data (only one \n at the end