Skip to content

Commit

Permalink
Pass through correct status code in patched file uri fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed Mar 16, 2024
1 parent 1d687ec commit 93f2daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const req = new XMLHttpRequest()
req.responseType = 'arraybuffer'
req.onload = () => {
resolve(new Response(req.response, { status: 200, headers: { 'Content-Type': req.getResponseHeader('content-type') } }))
resolve(new Response(req.response, { status: req.status, headers: { 'Content-Type': req.getResponseHeader('content-type') } }))
}
req.onerror = (error) => {
reject(error)
Expand Down

0 comments on commit 93f2daf

Please sign in to comment.