From c2a82199acca702cff6c4d1b359c1a4118c91b96 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 11 May 2020 22:09:58 +0200 Subject: Make response cookie handling case insensitive as HTTP2 returns lowercase --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_url.class b/it_url.class index d5492e8..5bd796c 100644 --- a/it_url.class +++ b/it_url.class @@ -155,7 +155,7 @@ function parse_http_header($header) $this->headers[$parts[1]] = $this->result = $parts[2]; elseif (preg_match('#^([^:]+): (.*)$#', $line, $parts)) $this->headers[$parts[1]] = $parts[2]; - if ($parts[1] == 'Set-Cookie' && preg_match('/^([^=]+)=([^;]*)/', $parts[2], $cookie)) + if (strtolower($parts[1]) == 'set-cookie' && preg_match('/^([^=]+)=([^;]*)/', $parts[2], $cookie)) $this->cookies[$cookie[1]] = $cookie[2]; } } -- cgit v1.2.3