Skip to content

Commit

Permalink
fix: remove connection header
Browse files Browse the repository at this point in the history
  • Loading branch information
esroyo committed Jan 23, 2025
1 parent cedad69 commit 91e3f94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/create-main-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ export function createMainHandler(
response.headers.set('timing-allow-origin', '*');
}

response.headers.set('x-esm-target', buildTarget);

if (willCache) {
const cacheWriteSpan = tracer.startSpan('cache-write', {
attributes: { 'span.type': 'cache' },
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const denyHeadersList = [
'cf-cache-status',
'cf-ray',
'content-length',
'connection',
'date',
'host',
'last-modified',
Expand Down

0 comments on commit 91e3f94

Please sign in to comment.