Skip to content

Commit

Permalink
fix: dotstorage race requests should receive original request headers (
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Oct 25, 2022
1 parent d33d05e commit f10bee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edge-gateway/src/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ async function getFromDotstorage (request, env, cid, options = {}) {
}),
...env.cdnGateways.map(async (host) => {
const gwResponse = await gatewayFetch(host, cid, pathname, {
timeout: env.REQUEST_TIMEOUT
timeout: env.REQUEST_TIMEOUT,
headers: request.headers
})

// @ts-ignore 'response' does not exist on type 'GatewayResponseFailure'
Expand Down

0 comments on commit f10bee1

Please sign in to comment.