Skip to content

fix: polyfill headers.getAll #1766

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

Merged
merged 2 commits into from
Nov 14, 2022
Merged

fix: polyfill headers.getAll #1766

merged 2 commits into from
Nov 14, 2022

Conversation

ascorbic
Copy link
Contributor

Summary

Next.js uses the non-standard headers.getAll, which was removed from the spec but implemented by CLoudflare workerd just for set-cookie headers. This PR adds a polyfill for this to the edge runtime.

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

Fixes #1732

elon carrying a capybara into twitter HQ

@ascorbic ascorbic requested a review from a team November 11, 2022 19:23
@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/637210c437af65000817b136
😎 Deploy Preview https://deploy-preview-1766--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/637210c47bce1800096115b4
😎 Deploy Preview https://deploy-preview-1766--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/637210c4fe555e000899f3f3
😎 Deploy Preview https://deploy-preview-1766--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Nov 11, 2022
@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/637210c4cefa8d000ae5886e
😎 Deploy Preview https://deploy-preview-1766--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/637210c418feda0009968e2f
😎 Deploy Preview https://deploy-preview-1766--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/637210c40b96f8000974dfb0
😎 Deploy Preview https://deploy-preview-1766--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/637210c4f114140008175f72
😎 Deploy Preview https://deploy-preview-1766--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/637210c4e2e59d0009a8bb11
😎 Deploy Preview https://deploy-preview-1766--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Nov 11, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit 8a9fdb2
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/637210c458966f00070be6e4
😎 Deploy Preview https://deploy-preview-1766--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kodiakhq kodiakhq bot merged commit b400efb into main Nov 14, 2022
@kodiakhq kodiakhq bot deleted the mk/headers-getall branch November 14, 2022 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Advanced Middleware does not work with Next 13.0.1
2 participants