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) { ...@@ -1384,15 +1384,12 @@ Casper.prototype.open = function open(location, settings) {
1384 this.page.customHeaders = utils.mergeObjects(utils.clone(baseCustomHeaders), customHeaders); 1384 this.page.customHeaders = utils.mergeObjects(utils.clone(baseCustomHeaders), customHeaders);
1385 // perfom request 1385 // perfom request
1386 this.browserInitializing = true; 1386 this.browserInitializing = true;
1387 var self = this;
1388 this.page.openUrl(this.requestUrl, { 1387 this.page.openUrl(this.requestUrl, {
1389 operation: settings.method, 1388 operation: settings.method,
1390 data: settings.data 1389 data: settings.data
1391 }, this.page.settings, function(){ 1390 }, this.page.settings);
1392 // revert base custom headers 1391 // revert base custom headers
1393 self.page.customHeaders = baseCustomHeaders; 1392 this.page.customHeaders = baseCustomHeaders;
1394 });
1395
1396 return this; 1393 return this;
1397 }; 1394 };
1398 1395
......