diff options
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/cgi.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim index cb6e8ae4..848df1b7 100644 --- a/src/loader/cgi.nim +++ b/src/loader/cgi.nim @@ -211,7 +211,8 @@ proc loadCGI*(handle: LoaderHandle, request: Request, cgiDir: seq[string], contentLen, prevURL) discard execl(cstring(cmd), cstring(basename), nil) let code = int(ERROR_FAILED_TO_EXECUTE_CGI_SCRIPT) - stdout.write("Cha-Control: ConnectionError " & $code) + stdout.write("Cha-Control: ConnectionError " & $code & + ($strerror(errno)).deleteChars({'\n', '\r'})) quit(1) else: discard close(pipefd[1]) # close write |