diff --git a/lib/browser.js b/lib/browser.js index 9a11fff5..661eeaa8 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -148,10 +148,11 @@ Browser.prototype.init = async (phantomasOptions) => { request._initiator = data.initiator; networkDebug( - "Network.requestWillBeSent > %s %s [%s]", + "Network.requestWillBeSent > %s %s [%s] headers: %j", request.method, request.url, - request._initiator.type + request._initiator.type, + request.headers ); this.events.emit("request", request); // @desc Emitted when page is about to send HTTP request