From 39cfc0088a37fd934441e07db1e49b6659e72ebd Mon Sep 17 00:00:00 2001 From: Alex Zepeda Date: Fri, 6 Apr 2012 12:10:43 -0700 Subject: [PATCH] propfind: Ensure the default namespace for a multistatus is always DAV: --- lib/dav4rack/controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dav4rack/controller.rb b/lib/dav4rack/controller.rb index 841ab66..21fe89c 100644 --- a/lib/dav4rack/controller.rb +++ b/lib/dav4rack/controller.rb @@ -558,6 +558,9 @@ def propstats(xml, stats) x.parent.namespace = nil if _ns.nil? end end + + # This is gross, but make sure we set the current namespace back to DAV: + xml['D'] end end xml.status "#{http_version} #{status.status_line}"