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

Templates directive breaks HTML MIME type #1417

Closed
Nixtren opened this issue Feb 9, 2017 · 1 comment
Closed

Templates directive breaks HTML MIME type #1417

Nixtren opened this issue Feb 9, 2017 · 1 comment

Comments

@Nixtren
Copy link

Nixtren commented Feb 9, 2017

1. What version of Caddy are you running (caddy -version)?

Caddy 0.9.5

2. What are you trying to do?

Access a static webpage page (GET /index.html)

3. What is your entire Caddyfile?

127.0.0.1:8000 {
	root .
	templates
}

4. How did you run Caddy (give the full command and describe the execution environment)?

caddy

5. What did you expect to see?

MIME type text/html

6. What did you see instead (give full error messages and/or log)?

MIME type text/plain

7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?

curl https://getcaddy.com | bash
wget http://example.org/ -O index.html
# Don't forget to add Caddyfile to the current folder
caddy

Forum discussion:
https://forum.caddyserver.com/t/templates-directive-causes-html-to-lose-mime-type/1426

@Nixtren
Copy link
Author

Nixtren commented Feb 10, 2017

I've attempted to reproduce the problem from scratch (point 7), but I couldn't replicate again. Curiously, I've managed to solve the issue by running dos2unix on the HTML files 😮

@Nixtren Nixtren closed this as completed Feb 10, 2017
@Nixtren Nixtren reopened this Feb 10, 2017
@Nixtren Nixtren closed this as completed Feb 10, 2017
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

1 participant