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 upServo isn't exposing custom http response statuses to XHR #24924
Comments
|
send-redirect-no-location and send-redirect-to-cors also fail like this. |
|
servo/components/script/dom/request.rs Line 516 in b274d59 It seems the CHICKEN request method is correctly set.
|
WPT xhr/status-async, xhr/status-basic and xhr/status-error expect to be able to see custom http statuses like "204 UNICORNSWIN" and "699 WAY OUTTA RANGE". Servo is instead showing out-of-range status numbers as 0, and is returning the standardized string meanings of in-range status numbers instead of the custom ones the server sent. I'm not seeing the list of standard status names within Servo's own source tree, so this must be involving another crate, maybe http.
In some cases in status-basic it looks like it's even interpreting the custom responses as a network error!