Skip to content

Commit

Permalink
getRequestContent 1s
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Oct 20, 2018
1 parent 0e70d6f commit 18e9b9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/gather/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,11 @@ class Driver {
* @param {number} timeout
* @return {Promise<string>}
*/
async getRequestContent(requestId, timeout = 5000) {
async getRequestContent(requestId, timeout = 1000) {
requestId = NetworkRequest.getRequestIdForBackend(requestId);

// Encoding issues may lead to hanging getResponseBody calls: https://github.com/GoogleChrome/lighthouse/pull/4718
// driver.sendCommand will handle timeout after 5s.
// driver.sendCommand will handle timeout after 1s.
this.setNextProtocolTimeout(timeout);
const result = await this.sendCommand('Network.getResponseBody', {requestId});
return result.body;
Expand Down

0 comments on commit 18e9b9b

Please sign in to comment.