Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.4
-
None
Description
Currently VersionInfo#getUserAgent sets Java 1.5 minimum by default but both HttpCore and HttpClient have Java 1.6 now. Values are completely ignored.
This needs to be determined at runtime. The best approach would be add a manifest property X-Compile-Target-JDK just like commons-parent does. VersionInfo can be changed and report that information.
Alternatively, this information can be completely dropped.
The output now is
[http-8081-1] DEBUG org.apache.http.wire - http-outgoing-44 >> "User-Agent: Apache-HttpClient/4.4 (Java 1.5 minimum; Java/1.7.0_55)[\r][\n]"