Permalink
Browse files

Fixed header parsing for Symfony driver.

If there was a colon in a header it was parsed incorrectly. For example if there was a full URL in a location header "http" was returned instead of "http://www.example.org/".
  • Loading branch information...
1 parent 7eb0164 commit 5c88713c6a02c058bfd3f952498416d688429360 @jakzal jakzal committed Dec 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Driver/SymfonyDriver.php
View
@@ -112,7 +112,7 @@ public function getResponseHeaders()
$responseHeaders = trim($this->getClient()->getResponse()->headers->__toString());
foreach (explode("\r\n", $responseHeaders) as $header) {
- list($name, $value) = array_map('trim', explode(':', $header));
+ list($name, $value) = array_map('trim', explode(':', $header, 2));
if (isset($headers[$name])) {
$headers[$name] = array($headers[$name]);

0 comments on commit 5c88713

Please sign in to comment.