Skip to content

Commit c343be0

Browse files
author
Alan Shaw
authored
fix: use fresh context object per request (#60)
refs storacha/gateway-lib#36 refs filecoin-project/lassie#340 (comment)
1 parent 497c6d4 commit c343be0

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@ipld/dag-cbor": "^9.0.0",
2828
"@ipld/dag-json": "^10.0.1",
2929
"@ipld/dag-pb": "^4.0.2",
30-
"@web3-storage/gateway-lib": "^3.2.2",
30+
"@web3-storage/gateway-lib": "^3.2.4",
3131
"cardex": "^2.2.2",
3232
"chardet": "^1.5.0",
3333
"dagula": "^7.0.0",

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-env worker */
22
import {
3+
withContext,
34
withCorsHeaders,
45
withContentDispositionHeader,
56
withErrorHandler,
@@ -33,6 +34,7 @@ export default {
3334
console.log(request.method, request.url)
3435
const middleware = composeMiddleware(
3536
withCdnCache,
37+
withContext,
3638
withCorsHeaders,
3739
withVersionHeader,
3840
withContentDispositionHeader,

0 commit comments

Comments
 (0)