josephg/ShareJS — Issue #66: REST POST and PUT interface hanging
Author: devoid
Created: 2012-02-10 00:55:02+00:00
State: open

I am having trouble using the REST interface for anything other than `GET`s. I've tried with and without a dummy `auth()` method. This is with `db : { type : "none" }` but without restarting the server. Am I missing something?

$ curl -i -X GET http://localhost:3000/doc/hello
HTTP/1.1 200 OK
X-Powered-By: Express
X-OT-Type: text
X-OT-Version: 0
Content-Type: text/plain
Connection: keep-alive
Transfer-Encoding: chunked

$ curl -i -X POST -d '[{"p":0, "i":"Hello world"}]' http://localhost:3000/doc/hello?v=0
curl: (52) Empty reply from server

$ curl -i -X GET http://localhost:3000/doc/new
HTTP/1.1 404 Not Found
X-Powered-By: Express
Content-Type: text/plain
Connection: keep-alive
Transfer-Encoding: chunked

404: Your document could not be found.
$ curl -i -X PUT -d '{"type":"json"}' http://localhost:3000/doc/new
curl: (52) Empty reply from server

Thanks!