function getHeaderValue(sHeaders, sHeaderName) {
		var i,
			aHeaderParts,
			aHeaders = sHeaders.split("\r\n");

		for (i = 0; i < aHeaders.length; i += 1) {
			aHeaderParts = aHeaders[i].split(":");

			if (aHeaderParts[0].toLowerCase().trim() === sHeaderName) {
				return aHeaderParts[1].trim();
			}
		}
	}
function getHeaderValue(sHeaders, sHeaderName) {
		var i,
			aHeaderParts,
			aHeaders = sHeaders.split("\r\n");

		for (i = 0; i < aHeaders.length; i += 1) {
			aHeaderParts = aHeaders[i].split(":");

			if (aHeaderParts[0].toLowerCase().trim() === sHeaderName) {
				return aHeaderParts[1].trim();
			}
		}
	}
function getHeaderValue ( sHeaders , sHeaderName ) { var i , aHeaderParts , aHeaders = sHeaders . split ( "\r\n" ) ; for ( i = 0 ; i < aHeaders . length ; i += 1 ) { aHeaderParts = aHeaders [ i ] . split ( ":" ) ; if ( aHeaderParts [ 0 ] . toLowerCase ( ) . trim ( ) === sHeaderName ) { return aHeaderParts [ 1 ] . trim ( ) ; } } }
Returns value of the header with the specified <code>sHeaderName</code> from
the specified <code>sHeaders</code> section of MIME part.

@param {string} sHeaders
Section of MIME part representing HTTP headers
@param {string} sHeaderName
Name of HTTP header in lower case
@returns {string} The HTTP header value
Returns value of the header with the specified <code > sHeaderName< / code > from the specified <code > sHeaders< / code > section of MIME part .
Get the value of a header