Skip to content

Commit

Permalink
adding reponse status to processing resources
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Sep 5, 2024
1 parent 016c540 commit 58b60a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ async function saveResponseResource(network, request) {

if (!resource || (!resource.root && !resource.provided && disableCache)) {
try {
log.debug(`Processing resource: ${url}`, meta);
let shouldCapture = response && hostnameMatches(allowedHostnames, url);
let body = shouldCapture && await response.buffer();

Expand All @@ -459,8 +460,6 @@ async function saveResponseResource(network, request) {
return log.debug(`- Skipping disallowed resource type [${request.type}]`, meta);
}

log.debug(`Processing resource: ${url}`, meta);

// mime package does not handle query params
let urlObj = new URL(url);
let urlWithoutSearchParams = urlObj.origin + urlObj.pathname;
Expand Down

0 comments on commit 58b60a9

Please sign in to comment.