cortesi / devd

A local webserver for developers
MIT License
3.44k stars 145 forks source link

301 response issue #88

Open thurt opened 6 years ago

thurt commented 6 years ago

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, https://github.com/cortesi/devd/blob/220423dc2680375a863127dbd9c1c5db4331d011/fileserver/fileserver.go#L451 however i don't see any way to disable this behavior.