There was an error while loading. Please reload this page.
1 parent 39536fc commit 9858accCopy full SHA for 9858acc
1 file changed
lib/src/Util/Net.php
@@ -91,7 +91,10 @@ public static function getLastBODYDebug() {
91
/**
92
* Extract a set of header lines into an array
93
*
94
- * Takes a newline separated header sting and returns a key/value array
+ * Takes a newline separated header sting and returns a key/value array.
95
+ * Keys are kept as received (HTTP/2 and HTTP/3 send them lowercase).
96
+ * Header names are case-insensitive (RFC 7230 / RFC 9110), so look
97
+ * them up with U::getIgnoreCase() rather than U::get().
98
*/
99
public static function parseHeaders($headerstr=false) {
100
if ( $headerstr === false ) $headerstr = self::getLastHeadersReceived();
0 commit comments