You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fixture request variable does not allow accessing the FormData properties and fails with
// throws error TypeError: 'entries' called on an object that does not implement interface FormData.
The solution is something like checking to see of the data is an instance of the various data types that can be passed to send. Will submit a pr to demonstrate.
The text was updated successfully, but these errors were encountered:
green3g
added a commit
to green3g/can-fixture
that referenced
this issue
Sep 29, 2017
FormData is a valid option for xhr requests and is useful for uploading files. In addition there are other types, like Blob that may be sent via xhr. https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
If I have an xhr request like this:
The fixture
request
variable does not allow accessing the FormData properties and fails withThe solution is something like checking to see of the data is an instance of the various data types that can be passed to
send
. Will submit a pr to demonstrate.The text was updated successfully, but these errors were encountered: