Skip to content
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

fix ArrayBuffer support #93

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

mohanyin
Copy link

Currently, this library doesn't let you send ArrayBuffers using fetch, even though the underlying polyfill supports it.

@mohanyin
Copy link
Author

Hm... looks like PhantomJS doesn't support ArrayBuffer, which makes this pretty difficult to test. Does anyone have thoughts on how to proceed?

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, I left a comment about how to get it passing...

@@ -79,6 +79,30 @@ test('posting a form', function(assert) {
assert.equal(data.name, 'World');
});
});
test('posting an array buffer', function(assert) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrap this test in an if (typeof ArrayBuffer !== ‘undefined’) {, which will get the tests passing on phantom (by not running this one) and on chrome...

@rwjblue
Copy link
Member

rwjblue commented Dec 18, 2017

I think CI was just fixed in #95, can you rebase (so we can confirm AppVeyor is passing properly)?

@mohanyin
Copy link
Author

@rwjblue mind taking another look?

@rwjblue rwjblue merged commit 5c5f63a into ember-cli:master Dec 20, 2017
@mohanyin mohanyin deleted the fix-arraybuffer-support branch December 20, 2017 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants