adding a better query string parser that can handle arrays

This commit is contained in:
Ahmad Nassri
2014-12-17 23:57:06 -05:00
parent dd9edca044
commit 8ee4ba0753
2 changed files with 16 additions and 12 deletions

View File

@@ -29,6 +29,12 @@ class Response
}
}
/**
* if PECL_HTTP is not available use a fall back function
*
* thanks to ricardovermeltfoort@gmail.com
* http://php.net/manual/en/function.http-parse-headers.php#112986
*/
if (!function_exists('http_parse_headers')) {
function http_parse_headers($raw_headers) {
$headers = array();