diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-07 00:46:31 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-07 00:46:31 +0100 |
commit | b74c491607b62673289a96956c74c12806e8ccef (patch) | |
tree | 83a32c4ba8b6526fd069b8a900a7e74e39e7c66c /src/loader | |
parent | 337828e5d46f1fe10fea2281422b19c54eb0b9bd (diff) | |
download | chawan-b74c491607b62673289a96956c74c12806e8ccef.tar.gz |
cgi: do not eat first word of the error message
whoops
Diffstat (limited to 'src/loader')
-rw-r--r-- | src/loader/cgi.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim index 848df1b7..5ba03662 100644 --- a/src/loader/cgi.nim +++ b/src/loader/cgi.nim @@ -211,7 +211,7 @@ 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: |