WebDAV workaround for the root path

This commit is contained in:
Karel Pičman 2020-02-10 08:28:28 +01:00
parent 951dba2f8b
commit a1ef3872c2

View File

@ -166,7 +166,7 @@ if Redmine::Plugin.installed? :redmine_dmsf
end
# WebDAV workaround for clients checking WebDAV availability in the root
if Redmine::Plugin.installed?(:easy_extensions)
unless Redmine::Plugin.installed?(:easy_extensions)
match '/', to: lambda { |env| [405, {}, [env.to_s]] }, via: [:propfind, :options]
end
match '/dmsf', to: lambda { |env| [405, {}, [env.to_s]] }, via: [:propfind, :options]