Skip to content

Commit

Permalink
Set response body to new location on create (resolves issue #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Aug 23, 2011
1 parent 6b1aa3e commit c1995a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dav4rack/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def put
resource.lock_check
status = resource.put(request, response)
response['Location'] = "#{scheme}://#{host}:#{port}#{resource.public_path}" if status == Created
response.body = response['Location']
status
end

Expand Down

0 comments on commit c1995a2

Please sign in to comment.