Skip to content
Browse files

fixes correctness of returned header values

  • Loading branch information...
1 parent 9c50f00 commit 18b437839db5eb503ee46ee0b3deee557a28512d @hnrysmth hnrysmth committed Sep 3, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/HttpResponse.php
View
2 src/HttpResponse.php
@@ -55,7 +55,9 @@ public function getHeader($name)
if (strpos($header, "{$name}:") === 0) {
$prefixLength = strlen("{$name}:") + 1;
+
$suffix = substr($header, $prefixLength);
+ $suffix = rtrim($suffix);
return $suffix;
}

0 comments on commit 18b4378

Please sign in to comment.
Something went wrong with that request. Please try again.