added version to user-agent header

This commit is contained in:
Sebastian Sdorra
2011-05-26 17:34:54 +02:00
parent 56cd84be89
commit 2ff82b3f67

View File

@@ -279,7 +279,8 @@ public class URLHttpClient implements HttpClient
connection = url.openConnection();
}
connection.setRequestProperty(HEADER_USERAGENT, HEADER_USERAGENT_VALUE);
connection.setRequestProperty(
HEADER_USERAGENT, HEADER_USERAGENT_VALUE.concat(context.getVersion()));
return connection;
}