Changeset 5819 in josm


Ignore:
Timestamp:
2013-03-31T21:39:37+02:00 (11 years ago)
Author:
stoecker
Message:

add system name to user agent string, remove direct setting of user agent in two functions, as this strips the Java part of string and is unnecessary

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Version.java

    r5362 r5819  
    214214            s += " SVN";
    215215        }
    216         return "JOSM/1.5 ("+ s+" "+LanguageInfo.getJOSMLocaleCode()+")";
     216        return "JOSM/1.5 ("+ s+" "+LanguageInfo.getJOSMLocaleCode()+") " + System.getProperty("os.name");
    217217    }
    218218}
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSGrabber.java

    r5587 r5819  
    5151            props.put("Cookie", layer.getInfo().getCookies());
    5252        }
    53         props.put("User-Agent", Main.pref.get("imagery.wms.user_agent", Version.getInstance().getAgentString()));
    5453        Pattern pattern = Pattern.compile("\\{header\\(([^,]+),([^}]+)\\)\\}");
    5554        StringBuffer output = new StringBuffer();
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r5791 r5819  
    554554        }
    555555        HttpURLConnection connection = (HttpURLConnection) httpURL.openConnection();
    556         connection.setRequestProperty("User-Agent", Version.getInstance().getAgentString());
    557556        return connection;
    558557    }
Note: See TracChangeset for help on using the changeset viewer.