[CalendarServer-changes] [831]
CalendarServer/trunk/twistedcaldav/resource.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 14 18:41:23 PST 2006
Revision: 831
http://trac.macosforge.org/projects/calendarserver/changeset/831
Author: cdaboo at apple.com
Date: 2006-12-14 18:41:23 -0800 (Thu, 14 Dec 2006)
Log Message:
-----------
Not everyone sends a user-agent header.
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/resource.py
Modified: CalendarServer/trunk/twistedcaldav/resource.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/resource.py 2006-12-15 01:17:18 UTC (rev 830)
+++ CalendarServer/trunk/twistedcaldav/resource.py 2006-12-15 02:41:23 UTC (rev 831)
@@ -88,7 +88,7 @@
# FIXME: Add a self-link to the dirlist with a query string so
# users can still download the actual iCalendar data?
agent = request.headers.getHeader("user-agent")
- if agent.startswith("Mozilla/") and agent.find("Gecko") != -1:
+ if agent and agent.startswith("Mozilla/") and agent.find("Gecko") != -1:
html_agent = True
else:
html_agent = False
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061214/1a810d87/attachment.html
More information about the calendarserver-changes
mailing list