Download:
child 239:d63d57df465c
parent 237:6098f4b17b2f
238:5a4ed43de4c6
Anton Shestakov <av6@dwimlabs.net>, Thu, 01 Sep 2016 17:39:28 +0800
queue: announce user-agent to be nice to hgweb operators

1 файлов изменено, 3 вставок(+), 1 удалений(-) [+]
poll-hgweb-queue.py file | annotate | diff | comparison | revisions
--- a/poll-hgweb-queue.py Thu Sep 01 17:30:18 2016 +0800
+++ b/poll-hgweb-queue.py Thu Sep 01 17:39:28 2016 +0800
@@ -52,7 +52,9 @@
def poll(self, target):
url = target['url']
http = AsyncHTTPClient()
- headers = {}
+ headers = {
+ 'User-Agent': 'hgweb poller (https://bitbucket.org/av6/candolint)'
+ }
if 'etag' in target:
headers['If-None-Match'] = target['etag']
logging.debug('Fetching %s', url)