Commit 1d017ee0 1d017ee07698c92f9efdb800a9a22a74a6117e86 by Laurent Jouanneau

Fixes regression with phantomjs, revert 00747d8d

1 parent f5f6b545
......@@ -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(){
}, this.page.settings);
// revert base custom headers
self.page.customHeaders = baseCustomHeaders;
});
this.page.customHeaders = baseCustomHeaders;
return this;
};
......