Comments (7)
This issue is still not fixed in version 0.6.2
.
from simple-http-server.
A quick debugging session showed that we're setting the content length correctly for HEAD
requests:
simple-http-server/src/main.rs
Line 683 in 108275b
which is identical to how we set it for GET
requests:
simple-http-server/src/main.rs
Line 781 in 108275b
Yet it works for GET
and doesn't work for HEAD
. What gives?
I also saw in the debugger that the metadata
field does contain the correct length read from the file system for HEAD
.
from simple-http-server.
Seems hyper
or iron
reset the ContentLength
A PR is welcome! : )
from simple-http-server.
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).
from simple-http-server.
It's an Iron bug. I've filed an issue there: iron/iron#582
from simple-http-server.
Are you going to release a new Windows binary with this fix?
from simple-http-server.
Will have to move to the new version of Iron
to get this fix released.
from simple-http-server.
Related Issues (20)
- Uploads time out on large files HOT 4
- [Feature Request] Add support for IPv4 and IPv6 simultaneously HOT 2
- How to use on linux HOT 1
- Downloading files with space in name fails HOT 1
- add multi-thread implementation HOT 1
- range以及编码问题 HOT 4
- Disable directory listing
- TLS/SSL Support HOT 4
- (Help) a brief installation/usage guide HOT 5
- Testing under NetBSD
- 0.0.0.0 rather than actual local IP (on Mac Ventura) HOT 2
- (HELP) Guide to change settings readme.md HOT 2
- Feature request: button to download all of a directory
- Closing the connection? HOT 2
- Device using the internet to download files instead of just 'copying' from the network
- File Corruption HOT 1
- PHP or Lua HOT 1
- Future incompatibility with Cargo HOT 2
- os error 3
- When I exit the vps, the page cannot be opened and an error 500 is displayed, but the process still exists.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-http-server.