Missing HTTP status in certain OPTIONS requests. (fixes #53)
h3rald h3rald@h3rald.com
Tue, 22 Oct 2019 16:02:50 +0200
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/litestorepkg/lib/api_v4.nim
→
src/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)