[CalendarServer-changes] [2970] CalendarServer/trunk/twistedcaldav
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 10 10:14:29 PDT 2008
Revision: 2970
http://trac.macosforge.org/projects/calendarserver/changeset/2970
Author: sagen at apple.com
Date: 2008-09-10 10:14:29 -0700 (Wed, 10 Sep 2008)
Log Message:
-----------
Assign a user-agent other than the default "Twisted page getter"
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/mail.py
CalendarServer/trunk/twistedcaldav/scheduling/imip.py
Modified: CalendarServer/trunk/twistedcaldav/mail.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/mail.py 2008-09-10 16:54:37 UTC (rev 2969)
+++ CalendarServer/trunk/twistedcaldav/mail.py 2008-09-10 17:14:29 UTC (rev 2970)
@@ -33,7 +33,7 @@
from twisted.web import resource, server, client
from twisted.web2.dav import davxml
from twisted.web2.http import Response
-from twisted.web2.http_headers import MimeType
+from twisted.web2.http_headers import MimeType
from twistedcaldav import ical, caldavxml
from twistedcaldav.config import config, parseConfig, defaultConfig
@@ -256,7 +256,7 @@
log.debug("Injecting to %s: %s %s" % (url, str(headers), data))
factory = client.HTTPClientFactory(url, method='POST', headers=headers,
- postdata=data)
+ postdata=data, agent="iMIP gateway")
if useSSL:
reactor.connectSSL(host, port, factory, ssl.ClientContextFactory())
else:
Modified: CalendarServer/trunk/twistedcaldav/scheduling/imip.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/scheduling/imip.py 2008-09-10 16:54:37 UTC (rev 2969)
+++ CalendarServer/trunk/twistedcaldav/scheduling/imip.py 2008-09-10 17:14:29 UTC (rev 2970)
@@ -95,7 +95,7 @@
'Recipient' : toAddr,
}
factory = client.HTTPClientFactory(url, method='POST', headers=headers,
- postdata=caldata)
+ postdata=caldata, agent="CalDAV server")
reactor.connectTCP(mailGatewayServer, mailGatewayPort, factory)
return factory.deferred
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20080910/b50b4007/attachment-0001.html
More information about the calendarserver-changes
mailing list