diff options
author | Christian Schneider | 2020-05-11 22:09:58 +0200 |
---|---|---|
committer | Christian Schneider | 2020-05-11 22:09:58 +0200 |
commit | c2a82199acca702cff6c4d1b359c1a4118c91b96 (patch) | |
tree | a852228517bc3e993292fe1a843eb3eeb1d46cdc /it_url.class | |
parent | a05685f98ce62fe1b58b08ca2362f3657b7f2ed1 (diff) | |
download | itools-c2a82199acca702cff6c4d1b359c1a4118c91b96.tar.gz itools-c2a82199acca702cff6c4d1b359c1a4118c91b96.tar.bz2 itools-c2a82199acca702cff6c4d1b359c1a4118c91b96.zip |
Make response cookie handling case insensitive as HTTP2 returns lowercase
Diffstat (limited to 'it_url.class')
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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]; } } |