From 66b9574b165be62e76c7397cf0eaa8d229d42675 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 16 Apr 2024 15:08:44 +0200 Subject: Update code style * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines --- src/loader/cgi.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/loader/cgi.nim') 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 -- cgit 1.4.1-2-gfad0