cortesi/devd

301 response issue

thurt opened this issue · 0 comments

thurt commented

example invocation

devd -A0.0.0.0 ./

example request from a different host

curl http://172.17.0.2:8000/index.html

this causes a 301 response. I expected it to return a 200 response with the file index.html.

is there a way to setup devd so it returns a 200 response?

context: my client doesn't follow redirects atm. i am using devd 0.8

edit: this looks like the relevant code,

// redirect .../index.html to .../
however i don't see any way to disable this behavior.