diff options
author | Andreas Gohr <andi@splitbrain.org> | 2013-03-24 13:09:56 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-03-24 13:09:56 +0100 |
commit | 8f989436768f021725a023c5ae7efae150586d0c (patch) | |
tree | 24cfa421252a1155bdfd144dbb5bc202f5e11e68 /inc/HTTPClient.php | |
parent | 33b8a94705bfbd34fbee5ed24982374e166a80d0 (diff) | |
download | rpg-8f989436768f021725a023c5ae7efae150586d0c.tar.gz rpg-8f989436768f021725a023c5ae7efae150586d0c.tar.bz2 |
don't send empty cookie header
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r-- | inc/HTTPClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php index 6d9855e12..0d7b80cf8 100644 --- a/inc/HTTPClient.php +++ b/inc/HTTPClient.php @@ -796,7 +796,7 @@ class HTTPClient { $headers .= "$key=$val; "; } $headers = substr($headers, 0, -2); - if ($headers !== '') $headers = "Cookie: $headers".HTTP_NL; + if ($headers) $headers = "Cookie: $headers".HTTP_NL; return $headers; } |