Skip to content

Removes invalid new for Response.redirect#1

Open
kinduff wants to merge 1 commit intocloudflare:mainfrom
kinduff:bugfix/new-response
Open

Removes invalid new for Response.redirect#1
kinduff wants to merge 1 commit intocloudflare:mainfrom
kinduff:bugfix/new-response

Conversation

@kinduff
Copy link

@kinduff kinduff commented Oct 15, 2021

The keyword new before Response.redirect raises a Javascript exception since the function is not a constructor.

You can reproduce an error in the deployed code of the worker by accessing: https://workers-airtable-form.signalnerve.workers.dev

It should redirect to https://airtable-form-example.pages.dev but instead raises an exception.-

I also opened a documentation issue cloudflare/cloudflare-docs#2505 to address this typo.

@kinduff
Copy link
Author

kinduff commented Jan 9, 2024

This can be merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant