Fix bug with HTTP and keepalive

A linebreak was sometimes introduced in the middle of the request
body.