Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbolic links can cause incorrect response headers #213

Closed
battlesnake opened this issue Nov 29, 2015 · 1 comment
Closed

Symbolic links can cause incorrect response headers #213

battlesnake opened this issue Nov 29, 2015 · 1 comment

Comments

@battlesnake
Copy link

To reproduce

echo '<!doctype html><html><head><meta charset="utf-8"><title>Test</title></head><body>Hello world</body></html>' > test.html
ln -s test.html test
http-server

Then go to http://localhost:8080/test

Expected behaviour

Server resolves target (realpath?) then prepares HTTP response based on target file

Content-Type: text/html

Observed behaviour

Server does not resolve target, causing incorrect HTTP response

Content-Type: application/octet-stream; charset=utf-8
@thornjad
Copy link
Member

thornjad commented Feb 3, 2019

This is an issue in node-ecstatic, not http-server, see discussion in jfhbrook/node-ecstatic#168

@thornjad thornjad closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants