Respond with status 201 when creating new objects

closes #86
This commit is contained in:
Garret Alfert
2016-08-05 17:40:50 +02:00
parent d786dc235a
commit 7a8694fd55
2 changed files with 29 additions and 4 deletions

View File

@@ -163,7 +163,7 @@ module RemoteStorage
end
server.headers["ETag"] = %Q("#{res.headers[:etag]}")
server.halt 200
server.halt existing_metadata.empty? ? 201 : 200
else
server.halt 500
end