summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorChristian Schneider2020-05-11 22:09:58 +0200
committerChristian Schneider2020-05-11 22:09:58 +0200
commitc2a82199acca702cff6c4d1b359c1a4118c91b96 (patch)
treea852228517bc3e993292fe1a843eb3eeb1d46cdc /it_url.class
parenta05685f98ce62fe1b58b08ca2362f3657b7f2ed1 (diff)
downloaditools-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.class2
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];
}
}