Skip to content

Commit

Permalink
fix propfind behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
yuuzi committed May 5, 2011
1 parent 70b4365 commit 6613e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/fakedav_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ def prop
when "0" then data = [data.first]
when "1" then data = data
when "infinity" then render(:nothing => true, :status => :forbidden) and return
else render(:nothing => true, :status => :forbidden) and return
end

render(:nothing => true, :status =>:ok) and return if params['propfind'].nil?
params['propfind'] = {'allprop' => nil} if params['propfind'].nil? ##xmlリクエストじゃなければallprop扱い
render(:nothing => true, :status =>:bad_request) and return if params['propfind'].count > 1
params['propfind'].each_pair do |k,v|
case k
Expand Down

0 comments on commit 6613e1d

Please sign in to comment.