Ticket #1920 defect new
dav.resource.py: RedirectResponse takes a full href, not a uri
| Reported by: | karpet | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web2 | Keywords: | |
| Cc: | exarkun | Branch: | |
| Author: | Launchpad Bug: |
Description
--- resource.py (revision 17515)
+++ resource.py (working copy)
@@ -469,7 +469,7 @@
# If this is a collection and the URI doesn't end in "/", redirect.
#
if self.isCollection() and request.uri[-1:] != "/":
- return RedirectResponse(request.uri + "/")
+ return RedirectResponse(request.unparseURL(path=request.uri + "/"))
def setHeaders(response):
response = IResponse(response)
Change History
Note: See
TracTickets for help on using
tickets.
