Fix headers to allow two things:
- correct detection of http/https
- remote address is use instead of Docker engine address
Reference:
- https://tools.ietf.org/html/rfc7239
- https://secure.phabricator.com/book/phabricator/article/configuring_preamble/
Fixes T915.