Commit 7958d51d 7958d51dd453379f7147ce40500de1b7629dae11 by oncletom Committed by Nicolas Perriault

Making stuff case insensitive

1 parent bdf25967
......@@ -1637,16 +1637,17 @@ responseHeaders.prototype = new Array;
/**
* Retrieves a given header based on its name
*
* @param String name A case-sensitive response header name
* @param String name A case-insensitive response header name
* @return mixed A header string or `null` if not found
*/
responseHeaders.prototype.get = function get(name){
"use strict";
var headerValue = null;
name = name.toLowerCase();
this.some(function(header){
if (header.name === name){
if (header.name.toLowerCase() === name){
headerValue = header.value;
return true;
}
......