Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

$resource: allow body in HTTP delete. #12747

Closed
jpprins1 opened this issue Sep 3, 2015 · 1 comment
Closed

$resource: allow body in HTTP delete. #12747

jpprins1 opened this issue Sep 3, 2015 · 1 comment

Comments

@jpprins1
Copy link

jpprins1 commented Sep 3, 2015

In resource.js:
520: var hasBody = /^(POST|PUT|PATCH)$/i.test(action.method);

Maybe also add DELETE?
($http supports delete with body)

Note: As far as I could find it looks like it's unclear (RFC) if body should be accepted for delete, but I needed this for an external API.

@pkozlowski-opensource
Copy link
Member

Duplicate of #8567 - currently $http does not allow DELETE requests with body (see

createShortMethods('get', 'delete', 'head', 'jsonp');
) so eventually changing this would be a prerequisite.

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

2 participants