Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.3.1
-
None
Description
An HttpClient created with HttpClients.createMinimal does not obey the general API contract of accepting an HttpUriRequest with an absolute URL. Specifically, this case:
HttpClients.createMinimal().execute(new HttpGet("http://localhost:8080/resource"));
would send the request:
GET http://localhost:8080/resource HTTP/1.1
rather than the expected:
GET /resource HTTP/1.1
The fix is to perform rewriting in MinimalClientExec.