You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2017/03/10 10:45:05 UTC

[jira] [Comment Edited] (HTTPCLIENT-1828) HttpDelete does not extend HttpEntityEnclosingRequestBase

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904877#comment-15904877 ] 

Gary Gregory edited comment on HTTPCLIENT-1828 at 3/10/17 10:44 AM:
--------------------------------------------------------------------

My POV is that we should allow programmers to work with whatever web services dish out there in the big bad world, within some reason of course. In this case, since the spec does not disallow a body in DELETE, I think we should allow HC to do it. Let's not forget that this ticket is driven by a user request. If it were just me, I'd go through and change the other verbs that do not disallow a body (but I'm not going to do that ATM.)


was (Author: garydgregory):
My POV is that we should allow programmers to work with whatever web services dish out there in the big bad world, within some reason of course. In this case, since the spec does not disallow a body in DELETE, I think we should allow HC to do it. Let's not forget that this ticket is driver by a user request. If it were just me, I'd go through and change the other verbs that do not disallow a body (but I'm not going to do that ATM.)

> HttpDelete does not extend HttpEntityEnclosingRequestBase
> ---------------------------------------------------------
>
>                 Key: HTTPCLIENT-1828
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1828
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>    Affects Versions: 4.5.1, 4.5.2, 4.5.3
>            Reporter: Saravanakumar Selvaraj
>             Fix For: 4.5.4, 5.0 Alpha1
>
>
> Sending body in DELETE is allowed as the HTTP 1.1 specification does not forbid. Hence HttpDelete.class should extend from HttpEntityEnclosingRequestBase instead of HttpRequestBase.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org