-
Notifications
You must be signed in to change notification settings - Fork 839
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
415 Unsupported Media Type for DELETE method #459
Comments
Most of the times, that's related with Rails and another framework getting crazy when DELETE has payload. Try #78 (comment) That should fix your problem Thanks! |
@mgonto I have tried that, however it didn't solve the issue. I have added as
Content Header from browser
|
That's weird. I'd recommend then setting |
Adding the following did help to solve the issue.
Does the above has any repercussions? Thanks |
All your requests by default will be application/json. That’s the only repercussion Martin Gontovnikas Twitter: @mgonto (https://twitter.com/mgonto) On Monday, December 9, 2013 at 2:07 PM, Pol wrote:
|
And if I have Do I need to have the following for PUT method?
|
That’s not necesary. That just sets elem.emp for undefined for no reason Martin Gontovnikas Twitter: @mgonto (https://twitter.com/mgonto) On Monday, December 9, 2013 at 2:08 PM, Pol wrote:
|
Thanks, one question though, if I would want to set header exclusively for DELETE, I have tried the following
But that doesn't have any impact. So is this the correct way or are there any other approach? Thanks |
If you want to set that header exclusively for delete, I’d recomment setting it to $http instead of Restangular where you can do that Martin Gontovnikas Twitter: @mgonto (https://twitter.com/mgonto) On Monday, December 9, 2013 at 2:26 PM, Pol wrote:
|
Thanks @mgonto Regards |
No problem :D Martin Gontovnikas Twitter: @mgonto (https://twitter.com/mgonto) On Monday, December 9, 2013 at 2:55 PM, Pol wrote:
|
Hi,
How can I change
Content-Type
:text/plain;charset=UTF-8
toapplication/json;charset=utf-8
for DELETE method in restangular?Because when I tried to delete, I am getting
415 Unsupported Media Type
for DELETE method.Regards
The text was updated successfully, but these errors were encountered: