Send "Not Found" message body with 404 responses (refs #42)

This commit is contained in:
Garret Alfert
2016-06-02 13:18:16 +02:00
parent 83d8f29a04
commit cc91b5c4cd
2 changed files with 79 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ module RemoteStorage
return res.body
rescue RestClient::ResourceNotFound
server.halt 404
server.halt 404, "Not Found"
end
def get_head_directory_listing(user, directory)
@@ -187,7 +187,7 @@ module RemoteStorage
server.halt 200
rescue RestClient::ResourceNotFound
server.halt 404
server.halt 404, "Not Found"
end
private