httpc: Allow content body in DELETE requests

James Wheare <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CACBTDBOr2KQwWRjrp4GhQajacPYNPOzsAao321bK1W8A3fonmw@mail.gmail.com>
Fetch command:
 git fetch git://github.com/jwheare/otp.git httpc_delete_body

Compare: https://github.com/jwheare/otp/compare/httpc_delete_body
Patch: https://github.com/jwheare/otp/compare/httpc_delete_body.patch

 lib/inets/src/http_client/httpc.erl  |  2 +-
 lib/inets/test/httpc_proxy_SUITE.erl | 17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)

---

httpc: Allow content body in DELETE requests

This isn't illegal according to the HTTP spec as far as I can see.
Here's an example of a real world API that requires it:
https://stripe.com/docs/api/curl#cancel_subscription
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.