-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP: 0x00 in a header value #21019
HTTP: 0x00 in a header value #21019
Conversation
Tests to complement those written in #10424.
async_test(t => { | ||
const img = document.createElement("img"); | ||
t.add_cleanup(() => img.remove()); | ||
img.src = "resources//blue-with-0x00-in-a-header.asis"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double '/' usage.
def main(request, response): | ||
response.headers.set("Content-Type", "text/html") | ||
response.headers.set("Custom", "\0") | ||
return "<!doctype html><b>This is irrelevant.</b>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe could do a text like "This is a simple document." or something generic.
def main(request, response): | ||
response.headers.set("Content-Type", "text/javascript") | ||
response.headers.set("Custom", "\0") | ||
return "var irrelevant = 0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with some comments.
BTW it seems there are lint errors: |
Tests to complement those written in #10424.