Author: chabotc
Date: Wed Apr  1 21:51:30 2009
New Revision: 761078

URL: http://svn.apache.org/viewvc?rev=761078&view=rev
Log:
Make RemoteContentRequest->getHeader a bit more fault taulerant

Modified:
    incubator/shindig/trunk/php/src/common/RemoteContentRequest.php

Modified: incubator/shindig/trunk/php/src/common/RemoteContentRequest.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/RemoteContentRequest.php?rev=761078&r1=761077&r2=761078&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/common/RemoteContentRequest.php (original)
+++ incubator/shindig/trunk/php/src/common/RemoteContentRequest.php Wed Apr  1 
21:51:30 2009
@@ -226,7 +226,7 @@
     $headers = explode("\n", $this->headers);
     foreach ($headers as $header) {
       $key = explode(":", $header, 2);
-      if ($key[0] == $headerName) return trim($key[1]);
+      if (strtolower(trim($key[0])) == strtolower($headerName)) return 
trim($key[1]);
     }
     return null;
   }


Reply via email to