Minor changes.
h3rald h3rald@h3rald.com
Sun, 01 Feb 2015 22:27:01 +0100
2 files changed,
2 insertions(+),
1 deletions(-)
M
lib/api_v1.nim
→
lib/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.nim
→
litestore.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()