Skip to content

Commit

Permalink
Do not bail out when content-disposition is inline
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed May 14, 2023
1 parent e79d9b2 commit a3a80e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/traffic.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,8 @@ const filterDocument = (( ) => {
}
}
// https://bugzilla.mozilla.org/show_bug.cgi?id=1426789
if ( headerValueFromName('content-disposition', headers) ) { return; }
const disposition = headerValueFromName('content-disposition', headers);
if ( disposition !== '' && disposition.startsWith('inline') === false ) { return; }

const stream = request.stream =
browser.webRequest.filterResponseData(extras.requestId);
Expand Down

0 comments on commit a3a80e3

Please sign in to comment.