Open thurt opened 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.
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.
example invocation
example request from a different host
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.