[CalendarServer-changes] [156] CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.filter.location.patch

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 19 13:35:06 PDT 2006


Revision: 156
Author:   cdaboo at apple.com
Date:     2006-09-19 13:35:03 -0700 (Tue, 19 Sep 2006)

Log Message:
-----------
Fix for incorrect merge into Twisted.

Added Paths:
-----------
    CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.filter.location.patch

Added: CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.filter.location.patch
===================================================================
--- CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.filter.location.patch	                        (rev 0)
+++ CalendarServer/branches/users/cdaboo/quota/lib-patches/Twisted/twisted.web2.filter.location.patch	2006-09-19 20:35:03 UTC (rev 156)
@@ -0,0 +1,20 @@
+Index: twisted/web2/filter/location.py
+===================================================================
+--- twisted/web2/filter/location.py	(revision 18208)
++++ twisted/web2/filter/location.py	(working copy)
+@@ -18,10 +18,12 @@
+             #
+             (scheme, host, path, params, querystring, fragment) = urlparse.urlparse(location)
+ 
+-            if scheme == "":
+-                location = request.unparseURL(path=location)
++            if scheme == '':
++                abslocation = request.unparseURL(path=location)
++            else:
++                abslocation = location
+         
+-            response.headers.setHeader("location", location)
++            response.headers.setHeader("location", abslocation)
+ 
+         return response
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20060919/49ea8cd3/attachment.html


More information about the calendarserver-changes mailing list