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
2ffa3112
...
2ffa31124fcbb8648f974465f0c761ef70d058ee
authored
2012-06-09 11:41:34 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #137 - added a warning when trying to send custom request headers using phantom < 1.6
1 parent
5642b7cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
docs
modules/casper.js
docs
@
de42a4e8
Subproject commit
716e1bcf1029468cbdf868fcd73fb0d40dbb7a95
Subproject commit
de42a4e8a5aaa3906a26ae89b12d73c3a082f8c7
...
...
modules/casper.js
View file @
2ffa311
...
...
@@ -828,6 +828,9 @@ Casper.prototype.open = function open(location, settings) {
}
this
.
emit
(
'open'
,
this
.
requestUrl
,
settings
);
this
.
log
(
f
(
'opening url: %s, HTTP %s'
,
this
.
requestUrl
,
settings
.
method
.
toUpperCase
()),
"debug"
);
if
(
'headers'
in
settings
&&
phantom
.
version
.
minor
<
6
)
{
this
.
warn
(
'Custom headers in outgoing requests are supported in PhantomJS >= 1.6'
);
}
this
.
page
.
openUrl
(
this
.
requestUrl
,
{
operation
:
settings
.
method
,
data
:
settings
.
data
,
...
...
Please
register
or
sign in
to post a comment