set our own user agent string

This commit is contained in:
Athou
2013-05-21 13:24:28 +02:00
parent 5569fcca40
commit d906b21fa9

View File

@@ -87,9 +87,8 @@ public class HttpGetter {
HttpGet httpget = new HttpGet(url);
httpget.addHeader(HttpHeaders.PRAGMA, "No-cache");
httpget.addHeader(HttpHeaders.CACHE_CONTROL, "no-cache");
httpget.addHeader(
HttpHeaders.USER_AGENT,
"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1468.0 Safari/537.36");
httpget.addHeader(HttpHeaders.USER_AGENT,
"CommaFeed/1.0 (http://www.commafeed.com)");
if (lastModified != null) {
httpget.addHeader(HttpHeaders.IF_MODIFIED_SINCE, lastModified);