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
1d017ee0
...
1d017ee07698c92f9efdb800a9a22a74a6117e86
authored
2013-07-12 17:16:22 +0200
by
Laurent Jouanneau
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixes regression with phantomjs, revert
00747d8d
1 parent
f5f6b545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
modules/casper.js
modules/casper.js
View file @
1d017ee
...
...
@@ -1384,15 +1384,12 @@ Casper.prototype.open = function open(location, settings) {
this
.
page
.
customHeaders
=
utils
.
mergeObjects
(
utils
.
clone
(
baseCustomHeaders
),
customHeaders
);
// perfom request
this
.
browserInitializing
=
true
;
var
self
=
this
;
this
.
page
.
openUrl
(
this
.
requestUrl
,
{
operation
:
settings
.
method
,
data
:
settings
.
data
},
this
.
page
.
settings
,
function
(){
// revert base custom headers
self
.
page
.
customHeaders
=
baseCustomHeaders
;
});
},
this
.
page
.
settings
);
// revert base custom headers
this
.
page
.
customHeaders
=
baseCustomHeaders
;
return
this
;
};
...
...
Please
register
or
sign in
to post a comment