[Pound Mailing List] X-SSL-certificate causes problems because server reject multi-line headers

Claudio <claudio.nieder-Nmf/[email protected]> Fri, 20 Apr 2018 00:56:23 +0200
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Hi,

RFC7230 issued June 2014 obsoleting RFC2616 states that multi-line =
header fields are deprecated and servers can reject http request with a =
400 error when they receive such headers. See excerpt below.

I discovered this, because I have now an issue with Jetty which =
complains about header folding, caused by the X-SSL-certificate header =
field. Searching for the issue on the internet I noticed, that other =
servers are also rejecting such kind of headers.

It would be nice if pound could adjust its behaviour with regard to this =
header and send it as a single line, or if there would be at least a =
configuration item which allows the suppression of the X-SSL-certificate =
header, while still keeping all other X-SSL-* headers.

Thank you very much,
claudio


3.2.4.  Field Parsing
[=E2=80=A6]
  Historically, HTTP header field values could be extended over
  multiple lines by preceding each extra line with at least one space
  or horizontal tab (obs-fold).  This specification deprecates such
  line folding except within the message/http media type (Section =
8.3.1).
  A sender MUST NOT generate a message that includes
  line folding (i.e., that has any field-value that contains a match to
  the obs-fold rule) unless the message is intended for packaging
  within the message/http media type.
  A server that receives an obs-fold in a request message that is not
  within a message/http container MUST either reject the message by
  sending a 400 (Bad Request), preferably with a representation
  explaining that obsolete line folding is unacceptable, or replace
  each received obs-fold with one or more SP octets prior to
  interpreting the field value or forwarding the message downstream.

Page 24/25 in https://tools.ietf.org/rfc/rfc7230.txt

--=20
Claudio Nieder  .  mailto:claudio.nieder-Nmf/[email protected]  .  http://inodes.ch/
iNodes AG  .  Loogartenstrasse 14  .  CH-8048 Z=C3=BCrich  .  +41 43 960 =
0066=

--
To unsubscribe send an email with subject unsubscribe to [email protected]
Please contact [email protected] for questions.