Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

ajax problem #916

Open
boyley opened this issue Jun 7, 2016 · 0 comments
Open

ajax problem #916

boyley opened this issue Jun 7, 2016 · 0 comments

Comments

@boyley
Copy link

boyley commented Jun 7, 2016

HI
code is as follows:
$.ajax({
type:'POST',
url: url,
beforeSend: function (xhrObj) {
xhrObj.setRequestHeader('Content-Type', 'application/json');
},
data:{},
success:function(data){},
error:function(data){},
});
I set request header Content-Type is application/json.But the actual request message header are as follows,: why is appended to the default message on the head:
Content-Type:application/x-www-form-urlencoded, application/json
i want remove application/x-www-form-urlencoded Media type ,leaving only application/json

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