Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Improve LittleFS support#7071

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 4 commits intoesp8266:masterfromJasperHorn:master
Feb 23, 2020
Merged

Improve LittleFS support#7071

d-a-v merged 4 commits intoesp8266:masterfromJasperHorn:master
Feb 23, 2020

Conversation

@JasperHorn
Copy link
Contributor

@JasperHornJasperHorn commentedFeb 10, 2020
edited
Loading

A bit of a follow-up to#6987. The subject matters is once again LittleFS support forESP8266WebServer.serveStatic() and the cause of problematic behavior is once again that you can create aFile for a directory in LittleFS, but can't in SPIFFS.

When the path was a directory, but didn't have a slash at the end, a 0 byte response would be sent if using LittleFS. This pull request fixes this weird behavior and now it will return a 404 instead.

<aside>
The reason for returning a 404 is that this is the behavior you get when using SPIFFS. However, that's probably because it's quite hard to detect that situation on SPIFFS. On LittleFS, it's simple (we're basically already doing it with this change), so there is a case to be made to return a 301 topath + "/" (as is the default behavior of both apache and nginx). It means different behavior between SPIFFS and LittleFS, but the best behavior that can be supported for both.

If you guys agree that this is the way to go, I might actually pick this up.
</aside>

JasperHornand others added3 commitsFebruary 10, 2020 02:29
Previously, when the path was a directory, but didn't have a slash atthe end, a 0 byte response would be sent when using LittleFS. Now, itwill return a 404, like was always the case when using SPIFFS.
Copy link
Collaborator

@earlephilhowerearlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM.. Thanks.

@d-a-vd-a-v merged commitd990ff9 intoesp8266:masterFeb 23, 2020
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@earlephilhowerearlephilhowerearlephilhower approved these changes

@devytedevytedevyte approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

2.7.0

Development

Successfully merging this pull request may close these issues.

4 participants

@JasperHorn@earlephilhower@devyte@d-a-v

[8]ページ先頭

©2009-2025 Movatter.jp