Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

IE11 xhr.send(undefined) sends 'undefined' string as POST payload #730

Open
davepies opened this issue Jul 10, 2019 · 0 comments
Open

IE11 xhr.send(undefined) sends 'undefined' string as POST payload #730

davepies opened this issue Jul 10, 2019 · 0 comments

Comments

@davepies
Copy link

If Vue.http.post gets called without passing in any data, the body of the request-body will contain a string "undefined".

This is a known quirk of IE11 (see MR on superagent)

Note: This only happens if Object.assign is being polyfilled - not if the internal assign-util is being called.

Reproduction Link

jsfiddle to reproduce

Steps to reproduce

Load the jsfiffle in IE11.

What is Expected?

The request's body should be empty and the data field in the example above should be an empty string.

What is actually happening?

The data field contains a string 'undefined'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant