bugfix: httpclient

This commit is contained in:
Araq 2010-10-30 19:13:35 +02:00
commit d11a62af31
2 changed files with 9 additions and 2 deletions

View file

@ -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")