jcoglan / restore

Simple remoteStorage server written in Node.js
293 stars 27 forks source link

GETting empty directories should return an empty object instead of an empty response #3

Closed nilclass closed 11 years ago

nilclass commented 11 years ago

From 2012.04#GET:

A GET to an empty/absent directory should return a 200 status with a "{}" in the body, rather than a 404 status.

jcoglan commented 11 years ago

I've just been updating reStore to the draft-00 spec, which states:

Empty folders are treated as non-existing, and therefore GET requests to them SHOULD be responded to with a 404 response

It previously implemented the 2012.04 design. I've not found the new changes to cause problems with the client. Have you?

nilclass commented 11 years ago

They caused problems for me, but I changed remoteStorage.js to work both ways, so it doesn't really matter.