all repos — litestore @ 0716dcbda094e67ac919c9fbef2f61a5b8c5c7b1

A minimalist nosql document store.

Minor changes.
h3rald h3rald@h3rald.com
Sun, 01 Feb 2015 22:27:01 +0100
commit

0716dcbda094e67ac919c9fbef2f61a5b8c5c7b1

parent

5867adfacb26f0c55c5506bbb6b224617b0d1c84

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M lib/api_v1.nimlib/api_v1.nim

@@ -308,7 +308,7 @@ var options = newQueryOptions()

try: parseQueryOptions(req.url.query, options); if id != "": - if req.url.query.contains("raw=true") or req.headers["Content-Type"] == "application/json": + if req.url.query.contains("raw=true") or req.headers["Accept"] == "application/json": return LS.getRawDocument(id, options) else: return LS.getDocument(id, options)
M litestore.nimlitestore.nim

@@ -43,6 +43,7 @@ LS.file.destroyDatastore()

LS.file.createDatastore() LS.store = LS.file.openDatastore() LS.store.packDir("nimcache") + LS.store.packDir("lib") # ENDTEST LS.serve runForever()