Merge branch 'master' of github.com:h3rald/litestore
h3rald h3rald@h3rald.com
Thu, 18 Aug 2022 19:05:38 +0000
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/litestorepkg/lib/api_v7.nim
→
src/litestorepkg/lib/api_v7.nim
@@ -883,7 +883,7 @@ options.select = @["documents.id AS id", "created", "modified"]
try: parseQueryOptions(req.url.query, options); if id != "" and options.folder == "": - if req.url.query.contains("raw=true") or req.headers.hasKey("Accept") and req.headers["Accept"] == "application/json": + if req.url.query.contains("raw=true"): return LS.getRawDocument(id, options, req) else: return LS.getDocument(id, options, req)