Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWrong http status when opening a file which doesn't exist #7684
Comments
|
If you want to test, add this at the 1402 line of println!("{:?}", metadata.status); |
|
These attributes are not set when it's a local file:
Should I create a new issue ? |
|
Yeah, this should be fixed along with #4212. Want to try fixing that one? |
|
Ok ! I lose here http://mxr.mozilla.org/servo/source/components/script/network_listener.rs#48 where Metadata come from and it's not modified before. |
|
Look at ResponseAction in net_traits/lib.rs; that's where it is stored, and then you can find the code that creates the HeadersAvailable value in net/resource_task.rs if I recall correctly (apologies, I'm on a phone). |
|
As of #8650, the metadata won't reach |
When opening a file which doesn't exist, the 404 status is expected. Instead it's the 200 which is given.