summary refs log tree commit diff stats
path: root/examples/httpserver2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'examples/httpserver2.nim')
-rw-r--r--examples/httpserver2.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/httpserver2.nim b/examples/httpserver2.nim
index 13fea9e21..050684d3e 100644
--- a/examples/httpserver2.nim
+++ b/examples/httpserver2.nim
@@ -90,7 +90,7 @@ proc serveFile(client: Socket, filename: string) =
 
 # ------------------ CGI execution -------------------------------------------
 
-proc executeCgi(server: var TServer, client: Socket, path, query: string, 
+proc executeCgi(server: var TServer, client: Socket, path, query: string,
                 meth: TRequestMethod) =
   var env = newStringTable(modeCaseInsensitive)
   var contentLength = -1
@@ -123,12 +123,12 @@ proc executeCgi(server: var TServer, client: Socket, path, query: string,
   send(client, "HTTP/1.0 200 OK" & wwwNL)
 
   var process = startProcess(command=path, env=env)
- 
+
   var job: TJob
   job.process = process
   job.client = client
   server.job.add(job)
- 
+
   if meth == reqPost:
     # get from client and post to CGI program:
     var buf = alloc(contentLength)