#1133 Cadaver
This commit is contained in:
parent
9daadb7857
commit
fbce894feb
@ -240,7 +240,6 @@ module DAV4Rack
|
||||
return MultiStatus
|
||||
end
|
||||
|
||||
|
||||
properties = if propfind.nil? or
|
||||
propfind.empty? or
|
||||
propfind.xpath("//#{ns}allprop").first
|
||||
@ -275,6 +274,7 @@ module DAV4Rack
|
||||
r.multistatus do |xml|
|
||||
xml << r.raw(prop_xml)
|
||||
end
|
||||
|
||||
MultiStatus
|
||||
end
|
||||
|
||||
@ -320,8 +320,6 @@ module DAV4Rack
|
||||
asked[:timeout] = timeout.split(',').map{|x|x.strip}
|
||||
end
|
||||
|
||||
Rails.logger.info ">>> #{request.document}"
|
||||
|
||||
ns = request.ns
|
||||
if doc = request.document and lockinfo = doc.xpath("//#{ns}lockinfo")
|
||||
|
||||
|
||||
@ -216,6 +216,16 @@ module RedmineDmsf
|
||||
prj
|
||||
end
|
||||
|
||||
# Adds the given xml namespace to namespaces and returns the prefix
|
||||
def add_namespace(ns, prefix = "unknown#{rand 65536}")
|
||||
@__proxy.add_namespace ns, prefix
|
||||
end
|
||||
|
||||
# returns the prefix for the given namespace, adding it if necessary
|
||||
def prefix_for(ns_href)
|
||||
@__proxy.prefix_for ns_href
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get_resource_info
|
||||
|
||||
@ -672,16 +672,6 @@ module RedmineDmsf
|
||||
x
|
||||
end
|
||||
|
||||
# Adds the given xml namespace to namespaces and returns the prefix
|
||||
def add_namespace(ns, prefix = "unknown#{rand 65536}")
|
||||
@__proxy.add_namespace ns, prefix
|
||||
end
|
||||
|
||||
# returns the prefix for the given namespace, adding it if necessary
|
||||
def prefix_for(ns_href)
|
||||
@__proxy.prefix_for ns_href
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Prepare file for download using Rack functionality:
|
||||
|
||||
@ -127,4 +127,5 @@ module RedmineDmsf
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user