bugfix: httpclient
This commit is contained in:
parent
8733886e53
commit
d11a62af31
2 changed files with 9 additions and 2 deletions
|
|
@ -345,6 +345,11 @@ proc writeContentType*() =
|
|||
write(stdout, "Content-type: text/html\n\n")
|
||||
system.stackTraceNewLine = "<br />\n"
|
||||
|
||||
proc setStackTraceNewLine*() =
|
||||
## Modifies the debug stack traces so that they contain
|
||||
## ``<br />`` and are easily readable in a browser.
|
||||
system.stackTraceNewLine = "<br />\n"
|
||||
|
||||
proc setCookie*(name, value: string) =
|
||||
## Sets a cookie.
|
||||
write(stdout, "Set-Cookie: ", name, "=", value, "\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue