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

Default document for sub directories? #49

Open
sfxworks opened this issue Jul 12, 2020 · 3 comments
Open

Default document for sub directories? #49

sfxworks opened this issue Jul 12, 2020 · 3 comments
Labels

Comments

@sfxworks
Copy link

sfxworks commented Jul 12, 2020

C:\Users\shaba>curl -I http://localhost:8080/
HTTP/1.1 200 OK
Server: asmttpd/0.4.4
Accept-Ranges: bytes
Content-Length: 17905
Content-Type: text/html

C:\Users\shaba>curl -I http://localhost:8080/plans
HTTP/1.1 200 OK
Server: asmttpd/0.4.4
Accept-Ranges: bytes
Content-Length: 9223372036854775807
Content-Type: application/octet-stream

C:\Users\shaba>curl -I http://localhost:8080/plans/index.html
HTTP/1.1 200 OK
Server: asmttpd/0.4.4
Accept-Ranges: bytes
Content-Length: 22342
Content-Type: text/html

C:\Users\shaba>curl -I http://localhost:8080/support/
HTTP/1.1 200 OK
Server: asmttpd/0.4.4
Accept-Ranges: bytes
Content-Length: 9223372036854775807
Content-Type: application/octet-stream

C:\Users\shaba>curl -I http://localhost:8080/support/index.html
HTTP/1.1 200 OK
Server: asmttpd/0.4.4
Accept-Ranges: bytes
Content-Length: 33833
Content-Type: text/html

Appears to be a scenario where the base domain automatically routes to index.html but everything else gets treated as application/octet-stream. Seems similar to #13

@nemasu
Copy link
Owner

nemasu commented Jul 13, 2020

Thanks for the bug report, I wonder if this is also a string_remove problem.

@nemasu
Copy link
Owner

nemasu commented Apr 19, 2021

The string_contains fix didn't change this behavior unfortunately. I'll try to look more into this one soon.

@nemasu nemasu added the bug label Apr 19, 2021
@sfxworks
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants