nemasu / asmttpd

Web server for Linux written in amd64 assembly.
GNU General Public License v2.0
3.03k stars 199 forks source link

with no default document, an application/octet-stream is returned #13

Closed stevenhoneyman closed 10 years ago

stevenhoneyman commented 10 years ago

for example:

$ wget -O - http://localhost
--2014-07-07 20:56:51--  http://localhost/
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘STDOUT’

The result is 0 bytes. Firefox interprets this as a bin file with a random name. If I specify http://localhost/index.html then it works perfectly.

Please could you add a "default document" feature in the future?

nemasu commented 10 years ago

Done. Thanks for the feedback.