Skip to content

Commit

Permalink
refactor: better integrity check (#2462)
Browse files Browse the repository at this point in the history
* refactor: better integrity check

* better
  • Loading branch information
tsctx committed Nov 30, 2023
1 parent ed15e98 commit 28759f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class Request {
}

// 23. If init["integrity"] exists, then set request’s integrity metadata to it.
if (init.integrity !== undefined && init.integrity != null) {
if (init.integrity != null) {
request.integrity = String(init.integrity)
}

Expand Down

0 comments on commit 28759f4

Please sign in to comment.