Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1508

Default user agent should reflect the Java version used and not compiled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.3
    • 4.4 Alpha1
    • HttpClient (classic)
    • None

    Description

      Currently, the dafault user agent looks like this:

      DEFAULT_USER_AGENT = "Apache-HttpClient/" + release + " (java 1.5)"
      

      This indicates that Java 1.5 is used but this is the compile target of HTTP Client.

      A better user agent would be:

      DEFAULT_USER_AGENT = "Apache-HttpClient/" + release + " (Java " + javaVersion ")"
      

      where javaVersion is the version where the client is currently running.

      Attachments

        Activity

          People

            Unassigned Unassigned
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: