Skip to content

2.6.0 breaks serving *.htm.gz #6792

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

Closed
kolos opened this issue Nov 16, 2019 · 0 comments · Fixed by #6794
Closed

2.6.0 breaks serving *.htm.gz #6792

kolos opened this issue Nov 16, 2019 · 0 comments · Fixed by #6794
Milestone

Comments

@kolos
Copy link

kolos commented Nov 16, 2019

9f2cfb8 breaks handling files uploaded as *.htm.gz

Example:
File uploaded as: dashboard.htm.gz
Http request: http://server/dashboard.htm
Actually served

  • Before: dashboard.htm OR dashboard.htm.gz => file found
  • After: dashboard.htm OR dashboard.html OR dashboard.html.gz => file not found

Propose:
only "/" path should be rewritten as /index.htm or /index.html or /index.htm.gz or /index.html.gz (whichever exists)

@devyte devyte added this to the 2.6.2 milestone Nov 16, 2019
earlephilhower added a commit to earlephilhower/Arduino that referenced this issue Nov 16, 2019
Fixes esp8266#6792

Only append the "l" to ".htm" when there actually is a ".html" file
present.  If not, fall-thru like before and try .gz through the normal
paths.
devyte pushed a commit that referenced this issue Nov 19, 2019
Fixes #6792

Only append the "l" to ".htm" when there actually is a ".html" file
present.  If not, fall-thru like before and try .gz through the normal
paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants