-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: expect renamed debug headers #2769
base: main
Are you sure you want to change the base?
Conversation
📊 Package size report 0%↑
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
406279e
to
ae8fab3
Compare
ae8fab3
to
7d8d339
Compare
'debug-x-nf-edge-functions': functionsToInvoke.join(','), | ||
'debug-x-nf-deploy-id': ctx.deployID, | ||
'debug-x-nf-site-info': Buffer.from( | ||
JSON.stringify({ id: ctx.siteID, name: 'Test Site', url: 'https://example.com' }), | ||
).toString('base64'), | ||
'x-nf-blobs-info': Buffer.from( | ||
'debug-x-nf-blobs-info': Buffer.from( | ||
JSON.stringify({ url: `http://${ctx.blobStoreHost}`, token: BLOB_TOKEN }), | ||
).toString('base64'), | ||
'x-nf-passthrough': 'passthrough', | ||
'x-nf-passthrough-host': passthroughHost, | ||
'x-nf-passthrough-proto': 'http:', | ||
'debug-x-nf-passthrough': 'passthrough', | ||
'debug-x-nf-passthrough-host': passthroughHost, | ||
'debug-x-nf-passthrough-proto': 'http:', | ||
'x-nf-request-id': v4(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those probably should not change as they are used to make @netlify/edge-bundler
serve work. Looking at how CLI handles those:
- https://github.com/netlify/cli/blob/e5c6a136c94f9c786c4c39a7daecddda2070473c/src/lib/edge-functions/proxy.ts#L151-L190
- https://github.com/netlify/cli/blob/e5c6a136c94f9c786c4c39a7daecddda2070473c/src/lib/edge-functions/headers.ts#L3-L20
Those should not be prefixed as they are request headers that setup edge function invocations and not response headers
Also https://github.com/netlify/edge-functions-bootstrap/blob/e49ee4a71e417c5ba91759a24f5b6ae0bd3ecc2c/src/bootstrap/headers.ts#L1-L41 is probably where those headers are used to make things work and they are not prefixed there
And Stargate link in comment above also lead to unprefixed headers
Description
The debug response headers were renamed a few weeks ago
Documentation
N/A - undocumented
Tests
🤔
Relevant links (GitHub issues, etc.) or a picture of cute animal
https://github.com/netlify/stargate/pull/2666