r7362 - dumbhippo/trunk/firehose/firehose/jobs
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7362 - dumbhippo/trunk/firehose/firehose/jobs
- Date: Thu, 13 Mar 2008 11:31:40 -0500 (CDT)
Author: walters
Date: 2008-03-13 11:31:40 -0500 (Thu, 13 Mar 2008)
New Revision: 7362
Modified:
dumbhippo/trunk/firehose/firehose/jobs/poller.py
Log:
Add a User-Agent field which links to new Firehose landing page
for angry system administrators.
Modified: dumbhippo/trunk/firehose/firehose/jobs/poller.py
===================================================================
--- dumbhippo/trunk/firehose/firehose/jobs/poller.py 2008-03-12 21:12:29 UTC (rev 7361)
+++ dumbhippo/trunk/firehose/firehose/jobs/poller.py 2008-03-13 16:31:40 UTC (rev 7362)
@@ -54,7 +54,8 @@
connection = httplib.HTTPConnection(host, port)
headers = {}
if prev_timestamp is not None:
- headers['If-Modified-Since'] = formatdate(prev_timestamp)
+ headers['If-Modified-Since'] = formatdate(prev_timestamp)
+ headers['User-Agent'] = 'Mugshot/Firehose (http://developer.mugshot.org/wiki/FirehosePolling)'
connection.request('GET', parsedurl[2], headers=headers)
response = connection.getresponse()
if response.status == 304:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]