workers-airtable-form icon indicating copy to clipboard operation
workers-airtable-form copied to clipboard

Removes invalid `new` for Response.redirect

Open kinduff opened this issue 4 years ago • 1 comments

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 https://github.com/cloudflare/cloudflare-docs/issues/2505 to address this typo.

kinduff avatar Oct 15 '21 23:10 kinduff

This can be merged now.

kinduff avatar Jan 09 '24 13:01 kinduff