jira-importer opened a new issue, #967:
URL: https://github.com/apache/httpcomponents-core/issues/967

   **[Dmitry 
Potapov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hirthwork)**
 opened 
**[HTTPCORE-347](https://issues.apache.org/jira/browse/HTTPCORE-347?redirect=false)**
 and commented
   
   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.
   
   
   ---
   
   **Affects:** 4.3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to