You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatefunctionassertValue(string$value): void
{
// The regular expression intentionally does not support the obs-fold production, because as// per RFC 7230#3.2.4://// 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.//// Clients must not send a request with line folding and a server sending folded headers is// likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting// folding is not likely to break any legitimate use case.if (! preg_match('/^(?:[\x21-\x7E\x80-\xFF](?:[\x20\x09]+[\x21-\x7E\x80-\xFF])?)*$/', $value)) {
thrownew \InvalidArgumentException(sprintf('"%s" is not valid header value', $value));
}
}
The text was updated successfully, but these errors were encountered:
guzzlehttp/http
: 7.4.1guzzlehttp/psr7
: 2.2.0 (2.1.0 - no errors)Stack Trace
Tests:
Doesn't work:
Works:
Works:
Guzzle Http
https://github.com/guzzle/psr7/blob/master/src/MessageTrait.php
The text was updated successfully, but these errors were encountered: