bugfix for HTTP/1.1 proxy