Commit 718a574d 718a574d55c1678dba740f5b4f44077a53db17fe by Chris Bosco

Request: Fix userAgent tests #401

1 parent 4bdcbeab
......@@ -2176,7 +2176,7 @@ function createPage(casper) {
};
page.onResourceRequested = function onResourceRequested(requestData, request) {
casper.emit('resource.requested', requestData, request);
if (request.url === casper.requestUrl) {
if (requestData.url === casper.requestUrl) {
casper.emit('page.resource.requested', request);
}
if (utils.isFunction(casper.options.onResourceRequested)) {
......