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
Make fetch "normal" #7138
Make fetch "normal" #7138
Conversation
Part 2 to fixing ampproject#7119 ([Part 1](ampproject#7138)).
16e6c6f
to
f58749e
Compare
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
188b78c
to
030db8b
Compare
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.
Thanks a lot! This makes a lot more sense.
test/functional/test-xhr.js
Outdated
@@ -529,7 +529,7 @@ describe('XHR', function() { | |||
}); | |||
|
|||
describe('#fetch ' + test.desc, () => { | |||
const creative = '<html><body>This is a creative</body></html>'; | |||
const creative = '<html><body>This is a creative💩</body></html>'; |
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.
Please change emoji.
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.
Awww. Changed.
e01a05d
to
fc8c466
Compare
…uffer. (ampproject#7133)" This reverts commit 27d6886.
Makes fetch a normal implementation. We implement `#arrayBuffer` by way of `utf8EncodeSync`, like it should have been.
fc8c466
to
5150d56
Compare
Part 2 to fixing ampproject#7119 ([Part 1](ampproject#7138)).
* Revert "Use proper application/json response header instead of arraybuffer. (ampproject#7133)" This reverts commit 27d6886. * Make fetch "normal" Makes fetch a normal implementation. We implement `#arrayBuffer` by way of `utf8EncodeSync`, like it should have been. * Fix types * Test UTF8 in XHR's ArrayBuffer * Remove final uses of fetchJsonResponse
Part 2 to fixing ampproject#7119 ([Part 1](ampproject#7138)).
* Revert "Use proper application/json response header instead of arraybuffer. (ampproject#7133)" This reverts commit 27d6886. * Make fetch "normal" Makes fetch a normal implementation. We implement `#arrayBuffer` by way of `utf8EncodeSync`, like it should have been. * Fix types * Test UTF8 in XHR's ArrayBuffer * Remove final uses of fetchJsonResponse
Makes fetch a normal implementation. We implement
#arrayBuffer
by wayof
utf8EncodeSync
, like it should have been.Part 1 to fixing #7119.