You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2013/09/04 15:15:57 UTC

[jira] [Updated] (HTTPCORE-347) BasicHttpResponse.setStatusCode() doesn't update reason phrase

     [ https://issues.apache.org/jira/browse/HTTPCORE-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCORE-347:
---------------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 4.3.1
           Labels: regression  (was: )
    
> BasicHttpResponse.setStatusCode() doesn't update reason phrase
> --------------------------------------------------------------
>
>                 Key: HTTPCORE-347
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-347
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore
>    Affects Versions: 4.3
>            Reporter: Dmitry Potapov
>            Priority: Minor
>              Labels: regression
>             Fix For: 4.3.1
>
>
> Steps to reproduce:
> 1. Download ElementalHttpServer.java from http://hc.apache.org/httpcomponents-core-4.3.x/examples.html
> 2. Compile
> 3. Run with '/tmp' as command-line argument
> 4. curl -v localhost:8080/non-existing-file
> Expected result: Status line is 'HTTP/1.1 404 Not Found'
> Actual Result on HttpCore 4.3.x: Status line is 'HTTP/1.1 404 OK'
> Actual Result on HttpCore 4.2.x: Status line is 'HTTP/1.1 404 Not Found'
> The root cause for this difference is that BasicHttpResponse.setStatusCode() in HttpCore 4.3.x doesn't change reason phrase, despite of javadoc, which declares that reason phrase will be update according to the status code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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