mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
set our own user agent string
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user