Revision: 831 http://trac.macosforge.org/projects/calendarserver/changeset/831 Author: cdaboo@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
participants (1)
-
source_changes@macosforge.org