Skip to content

Commit

Permalink
more case insensitive header fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Mar 13, 2012
1 parent 5abb44b commit b88c3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Buzz/Client/Curl.php
Expand Up @@ -47,7 +47,7 @@ static protected function setCurlOptsFromRequest($curl, Message\Request $request
if (is_array($fields)) {
$options[CURLOPT_HTTPHEADER] = array_filter($options[CURLOPT_HTTPHEADER], function($header)
{
return 0 !== strpos($header, 'Content-Type: ');
return 0 !== stripos($header, 'Content-Type: ');
});
}
break;
Expand Down
2 changes: 1 addition & 1 deletion lib/Buzz/Message/Request.php
Expand Up @@ -162,7 +162,7 @@ private function mergeCookieHeaders(array $headers)
$needle = 'Cookie:';

foreach ($headers as $i => $header) {
if (0 !== strpos($header, $needle)) {
if (0 !== stripos($header, $needle)) {
continue;
}

Expand Down

0 comments on commit b88c3a4

Please sign in to comment.