HTTP 200 proxy redirects do not seem to work correctly in netlify dev
#4561
Labels
type: bug
code to address defects in shipped code
netlify dev
#4561
Describe the bug
HTTP 200 redirects seem to be mishandled under
netlify dev
, returning alocation
header incorrectly.There should be no
location
set on an HTTP 200 proxy rule; we should only serve the content. Said redirect does work as expected in production, and I believe that production is correct here.Steps to reproduce
When running netlify dev with a 200 status redirect like this:
/:placeholder/signup/page.html /:placeholder/signup.html 200!
then, using cURL to test locally, we see this response:
Configuration
n/a
Environment
The text was updated successfully, but these errors were encountered: