removing http line folding support?

From: Date: Wed, 04 Feb 2015 07:24:54 +0000
Subject: removing http line folding support?
Groups: php.internals 
Request: Send a blank email to internals+get-81776@lists.php.net to get a copy of this message
Hi! Our header() function supports multiline HTTP headers, which are allowed by RFC 2616. However, newer RFC - https://tools.ietf.org/html/rfc7230#section-3.2.4 - deprecates them and says: 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. So, my question is - any objections for dropping this functionality? I'd be inclined to drop it in all versions from 5.4 up since it may still be confusing some not too smart clients that don't implement full spec, and frankly to me it doesn't seem of any use anyhow, but if you disagree, please explain. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#81776) next »