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

Only set content-type to urlencoded when data is string or URLSearchParams (#208) #210

Closed
wants to merge 1 commit into from
Closed

Only set content-type to urlencoded when data is string or URLSearchParams (#208) #210

wants to merge 1 commit into from

Conversation

friday
Copy link
Contributor

@friday friday commented Nov 20, 2017

As per discussion in #208.

Testing coverage is very limited (changes are semantical more than functional). This is due to sinon.js mock XHR server only supporting strings (This is still the case in the newest version). In other words this PR addresses #208, but not #200. I suggest we leave #200 open, hoping someone else has an idea of how to deal with it. The tests still work (and also would have if I hadn't changed them). They're just lacking coverage.

@LeaVerou
Copy link
Owner

Thanks!

I suggest we leave the issue open, hoping someone else has an idea of how to deal with it.

So I shouldn't merge this? Or you mean #208?

@friday
Copy link
Contributor Author

friday commented Nov 20, 2017

I've clarified the description. This PR addresses #208, but not #200. #200 is loosely speaking the same issue as #208, but focuses on the test specs.

@friday
Copy link
Contributor Author

friday commented Nov 21, 2017

Rebased to use $.type() now.

@LeaVerou LeaVerou closed this Dec 2, 2017
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