Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

unwrap FormData in XMLHttpRequest.send if needed #507

Merged
merged 1 commit into from
Sep 10, 2014
Merged

Conversation

jmesserly
Copy link
Contributor

@jmesserly
Copy link
Contributor Author

@arv mind taking a look?

Even though it's smallish, I created a few new files to match the existing style.

var unwrapIfNeeded = scope.unwrapIfNeeded;
var XMLHttpRequest = window.XMLHttpRequest;

var originalSend = XMLHttpRequest && XMLHttpRequest.prototype.send;
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need to check if XMLHttpRequest is available. All browsers support it alreade.

  var unwrapIfNeeded = scope.unwrapIfNeeded;

  var originalSend = XMLHttpRequest.prototype.send;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@arv
Copy link
Contributor

arv commented Sep 9, 2014

LGTM with nits

@jmesserly
Copy link
Contributor Author

PTAL

@arv
Copy link
Contributor

arv commented Sep 10, 2014

Great

LGTM

@jmesserly
Copy link
Contributor Author

awesome, thank you!

jmesserly pushed a commit that referenced this pull request Sep 10, 2014
unwrap FormData in XMLHttpRequest.send if needed
@jmesserly jmesserly merged commit b5abcf1 into master Sep 10, 2014
@jmesserly jmesserly deleted the xhr_formdata branch September 10, 2014 19:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FormData wrapper breaks XMLHttpRequest#send(FormData) in Firefox
2 participants