This commit is contained in:
Florian Schroedl
2022-05-30 20:35:56 +02:00
parent bbc3c9d28b
commit da2b4dc903
2 changed files with 2 additions and 3 deletions

View File

@@ -65,8 +65,7 @@ proc `$`*(x: Env): string =
htmlRoot: {x.htmlRoot}, htmlRoot: {x.htmlRoot},
distRoot: {x.distRoot}, distRoot: {x.distRoot},
orgEnv: {x.orgEnv}, orgEnv: {x.orgEnv},
) )"""
"""
when isMainModule: when isMainModule:
echo initEnv() echo initEnv()

View File

@@ -91,7 +91,7 @@ proc sendOrgFile(env: Env, id: orgId, path: seq[string]): NimHttpResponse =
code: Http200, code: Http200,
content: content, content: content,
headers: newHttpHeaders({ headers: newHttpHeaders({
"Content-Type": "application/json" "Content-Type": "text/plain"
}) })
) )
) )