about summary refs log tree commit diff stats
path: root/src/loader/cgi.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-16 15:08:44 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-17 23:19:09 +0200
commit66b9574b165be62e76c7397cf0eaa8d229d42675 (patch)
treeadb8a9719cc70f2b577706aaa4e30bb0d5d629a6 /src/loader/cgi.nim
parentd86f1939204eee771a30f47e4cbe71fd8d9a4f5f (diff)
downloadchawan-66b9574b165be62e76c7397cf0eaa8d229d42675.tar.gz
Update code style
* separate params with ; (semicolon) instead of , (colon)
* reduce screaming snake case use
* wrap long lines
Diffstat (limited to 'src/loader/cgi.nim')
-rw-r--r--src/loader/cgi.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loader/cgi.nim b/src/loader/cgi.nim
index 10809767..79344b6f 100644
--- a/src/loader/cgi.nim
+++ b/src/loader/cgi.nim
@@ -96,7 +96,7 @@ proc handleFirstLine(handle: LoaderHandle; line: string; headers: Headers;
   headers.add(k, v)
   return crDone
 
-proc handleControlLine(handle: LoaderHandle, line: string, headers: Headers,
+proc handleControlLine(handle: LoaderHandle; line: string; headers: Headers;
     status: var uint16): ControlResult =
   let k = line.until(':')
   if k.len == line.len:
@@ -114,7 +114,7 @@ proc handleControlLine(handle: LoaderHandle, line: string, headers: Headers,
   return crDone
 
 # returns false if transfer was interrupted
-proc handleLine(handle: LoaderHandle, line: string, headers: Headers) =
+proc handleLine(handle: LoaderHandle; line: string; headers: Headers) =
   let k = line.until(':')
   if k.len == line.len:
     # invalid