You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error-prone: "Response with null body status cannot have body" #487
I don't think you need to special case them in XMLHttpRequest, since XMLHttpRequest uses the same underlying primitives. If you can produce a non-null body in XMLHttpRequest with these status codes I'd love to know.
Activity
annevk commentedon Feb 13, 2017
I don't think you need to special case them in XMLHttpRequest, since XMLHttpRequest uses the same underlying primitives. If you can produce a non-null body in XMLHttpRequest with these status codes I'd love to know.
ConradIrwin commentedon Feb 13, 2017
Hah! My mistake for not including the entire snippet:
So in this case it goes wrong because the
responseTextis the empty string, which is not null, and it explodes.