Skip to content

Commit

Permalink
Merge pull request #38 from johanhermansson/patch-1
Browse files Browse the repository at this point in the history
Fixing makeHeaderObj checking wrong param for false
  • Loading branch information
trezy committed Dec 4, 2022
2 parents 10b8bb5 + 051fdc0 commit 4ffda6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nextSafe.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const buildPermissionsPolicyHeaders = require('./buildPermissionsPolicyHeaders.j
* @returns {Header}
*/
function makeHeaderObj(key, value, defaultValue) {
if (key === false) {
if (value === false) {
return undefined
}

Expand Down

0 comments on commit 4ffda6d

Please sign in to comment.