Author: Dario Rexin <firstname.lastname@example.org>
Date: Thu Nov 20 17:41:08 2014 -0800
Made libprocess generate valid HTTP.
While working on a pure Scala driver for Mesos, I discovered that
libprocess does not generate valid HTTP. It uses chunked encoding
combined with HTTP 1.0, which has only been added in HTTP
1.1. Additionally it stores the PID in the User-Agent field with an
incompatibe format ('@' and ':' are not allowed). This patch sets the
HTTP version to 1.1, adds an empty Host header (Host is mandatory in
1.1) and adds the Libprocess-From header. The User-Agent header is
left untouched for backwards compatibility reasons. Even strict HTTP
parser shouldn't error, but just ignore everything between the invalid
character and the CRLF.