about summary refs log tree commit diff stats
path: root/src/loader
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-07 00:46:31 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-07 00:46:31 +0100
commitb74c491607b62673289a96956c74c12806e8ccef (patch)
tree83a32c4ba8b6526fd069b8a900a7e74e39e7c66c /src/loader
parent337828e5d46f1fe10fea2281422b19c54eb0b9bd (diff)
downloadchawan-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.nim2
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: