[CalendarServer-changes] [5281] CalendarServer/trunk/twext/web2/server.py
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 10 10:09:26 PST 2010
Revision: 5281
http://trac.macosforge.org/projects/calendarserver/changeset/5281
Author: glyph at apple.com
Date: 2010-03-10 10:09:23 -0800 (Wed, 10 Mar 2010)
Log Message:
-----------
Don't bother to validate the Destination: header for consistency against Host:, because Host: itself isn't currently validated against anything.
Modified Paths:
--------------
CalendarServer/trunk/twext/web2/server.py
Modified: CalendarServer/trunk/twext/web2/server.py
===================================================================
--- CalendarServer/trunk/twext/web2/server.py 2010-03-10 17:36:16 UTC (rev 5280)
+++ CalendarServer/trunk/twext/web2/server.py 2010-03-10 18:09:23 UTC (rev 5281)
@@ -489,14 +489,6 @@
"URL may not contain a query or fragment: %s" % (url,)
))
- # The caller shouldn't be asking a request on one server to lookup a
- # resource on some other server.
- if (scheme and scheme != self.scheme) or (host and host != self.headers.getHeader("host")):
- raise http.HTTPError(http.StatusResponse(
- responsecode.BAD_GATEWAY,
- "URL is not on this site (%s://%s/): %s" % (scheme, self.headers.getHeader("host"), url)
- ))
-
# Look for cached value
cached = self._resourcesByURL.get(path, None)
if cached is not None:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100310/793bd8dd/attachment.html>
More information about the calendarserver-changes
mailing list