all repos — litestore @ 4135872a21305e65c60b0aa230e814a0732581ee

A minimalist nosql document store.

Missing HTTP status in certain OPTIONS requests. (fixes #53)
h3rald h3rald@h3rald.com
Tue, 22 Oct 2019 16:02:50 +0200
commit

4135872a21305e65c60b0aa230e814a0732581ee

parent

8609a7d05b0b40513a57fb96f999e5cec001d9cf

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

jump to
M src/litestorepkg/lib/api_v4.nimsrc/litestorepkg/lib/api_v4.nim

@@ -620,6 +620,7 @@ setOrigin(LS, req, result.headers)

result.headers["Allow"] = "HEAD, GET, OPTIONS, POST, PUT" result.headers["Access-Control-Allow-Methods"] = "HEAD, GET, OPTIONS, POST, PUT" elif id != "": + result.code = Http204 result.content = "" if LS.readonly: result.headers = newHttpHeaders(TAB_HEADERS)