On Wed, 2013-09-04 at 15:20 +0400, Dmitry Potapov wrote: > My case is trivial: > 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 > HttpResponse.setStatusCode() in HttpCore 4.3.x doesn't change reason > phrase, despite of javadocs, which promises reason phrase update. > This is all about trivial cases. > > For non-trivial cases HttpResponseFactory interface is not very > useful, because it won't copy custom headers, I've already set, to the > new HttpResponse object. >
Please raise a JIRA for this defect. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
