Commit 2ffa3112 2ffa31124fcbb8648f974465f0c761ef70d058ee by Nicolas Perriault

refs #137 - added a warning when trying to send custom request headers using phantom < 1.6

1 parent 5642b7cf
Subproject commit 716e1bcf1029468cbdf868fcd73fb0d40dbb7a95
Subproject commit de42a4e8a5aaa3906a26ae89b12d73c3a082f8c7
......
......@@ -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,
......