[CalendarServer-changes] [832] CalendarServer/trunk/twistedcaldav/resource.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Dec 14 19:45:52 PST 2006


Revision: 832
          http://trac.macosforge.org/projects/calendarserver/changeset/832
Author:   wsanchez at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20061214/4786441e/attachment.html


More information about the calendarserver-changes mailing list