Fixes regression with phantomjs, revert 00747d8d
Showing
1 changed file
with
3 additions
and
6 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment