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 upTrailing whitespace in XHR response headers is exposed #24917
Closed
Labels
Projects
Comments
bors-servo
added a commit
that referenced
this issue
Nov 29, 2019
bors-servo
added a commit
that referenced
this issue
Nov 30, 2019
bors-servo
added a commit
that referenced
this issue
Dec 2, 2019
bors-servo
added a commit
that referenced
this issue
Dec 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WPT test xhr/headers-normalize-response asks the server to send back a custom header ending in a space or tab, and unexpectedly can see that trailing space or tab in the returned header. I don't know which code is responsible: this may need a call on whether to strip immediately when storing the headers from the network HTTP response, or to keep the spaces/tabs at that time and strip them when returning them to Javascript getResponseHeader.
Regarding WPT results, Firefox and Safari pass these subtests and fail different subtests which Servo does pass (Servo's doing the right thing on NUL bytes).