Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
7958d51d
...
7958d51dd453379f7147ce40500de1b7629dae11
authored
2012-07-19 11:12:48 +0200
by
oncletom
Committed by
Nicolas Perriault
2012-10-18 09:43:58 +0200
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Making stuff case insensitive
1 parent
bdf25967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
modules/casper.js
modules/casper.js
View file @
7958d51
...
...
@@ -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-
in
sensitive 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
;
}
...
...
Please
register
or
sign in
to post a comment