Revision: 832 http://trac.macosforge.org/projects/calendarserver/changeset/832 Author: wsanchez@apple.com Date: 2006-12-14 19:45:52 -0800 (Thu, 14 Dec 2006) Log Message: ----------- minor, someone already beat me to it. Modified Paths: -------------- CalendarServer/trunk/twistedcaldav/resource.py Modified: CalendarServer/trunk/twistedcaldav/resource.py =================================================================== --- CalendarServer/trunk/twistedcaldav/resource.py 2006-12-15 02:41:23 UTC (rev 831) +++ CalendarServer/trunk/twistedcaldav/resource.py 2006-12-15 03:45:52 UTC (rev 832) @@ -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 and agent.startswith("Mozilla/") and agent.find("Gecko") != -1: + if agent is not None and agent.startswith("Mozilla/") and agent.find("Gecko") != -1: html_agent = True else: html_agent = False