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

PUT, DELETE #26

Open
robinComa opened this issue Aug 20, 2014 · 2 comments
Open

PUT, DELETE #26

robinComa opened this issue Aug 20, 2014 · 2 comments

Comments

@robinComa
Copy link
Contributor

Hello,

What is the way to do PUT and DELETE operation with a success callback?

After a fetch with {ajax: 'PUT'}, the HTTP status code is 200 but the fail callback of the promise is called.

The error is : "Unexpected end of input"

Thanks for your answer

@passy
Copy link
Contributor

passy commented Feb 8, 2015

Sorry for the ridiculously late response. Is this still an issue for you?

@robinComa
Copy link
Contributor Author

Hello, Yes,!
If PUT or DELETE, the http repsonse body will be "", so it is not an object.
why do you write : if (Object(response) !== response) { (line 282 of dist). ?
It is a problem for me, but maybe i don't understand.
Thanks for answer

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

No branches or pull requests

2 participants