-
Notifications
You must be signed in to change notification settings - Fork 165
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
Content-Length 0 in HEAD Response #16
Comments
A quick debugging session showed that we're setting the content length correctly for simple-http-server/src/main.rs Line 683 in 108275b
which is identical to how we set it for simple-http-server/src/main.rs Line 781 in 108275b
Yet it works for I also saw in the debugger that the |
Seems A PR is welcome! : ) |
Thanks @TheWaWaR. I agree with you. I should've ideally done the fix, but I'm in the middle of a lot of stuff right now. So will have to do this later (unless someone beats me to it). |
It's an Iron bug. I've filed an issue there: iron/iron#582 |
Are you going to release a new Windows binary with this fix? |
Will have to move to the new version of |
If I try a
HEAD
request on any file thatsimple_http_server
is serving, it always returns theContent-Length
header with value 0. If I try the GET request on the same file, it returns the correct value in that header.HEAD
is often used by many file downloading software to determine the length of the file before downloading it. This would break them (as it's doing in my case).The text was updated successfully, but these errors were encountered: