summary refs log tree commit diff stats
path: root/examples/httpserver2.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-30 08:53:31 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-30 08:53:31 +0200
commit5758ebf02c28e1071036d1dc9ae9e1265c6dc28c (patch)
tree5a39618bbf194607951ab97ecdcf6eb6b439956a /examples/httpserver2.nim
parent87f548c5f4027a0faf57acf0878f7c5db382222c (diff)
downloadNim-5758ebf02c28e1071036d1dc9ae9e1265c6dc28c.tar.gz
more fixes for the new string behaviour
Diffstat (limited to 'examples/httpserver2.nim')
-rw-r--r--examples/httpserver2.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/httpserver2.nim b/examples/httpserver2.nim
index 050684d3e..1843ff967 100644
--- a/examples/httpserver2.nim
+++ b/examples/httpserver2.nim
@@ -107,7 +107,7 @@ proc executeCgi(server: var TServer, client: Socket, path, query: string,
       dataAvail = recvLine(client, buf)
       if buf.len == 0:
         break
-      var L = toLower(buf)
+      var L = toLowerAscii(buf)
       if L.startsWith("content-length:"):
         var i = len("content-length:")
         while L[i] in Whitespace: inc(i)
@@ -205,7 +205,7 @@ proc acceptRequest(server: var TServer, client: Socket) =
     client.close()
   else:
     when defined(Windows):
-      var ext = splitFile(path).ext.toLower
+      var ext = splitFile(path).ext.toLowerAscii
       if ext == ".exe" or ext == ".cgi":
         # XXX: extract interpreter information here?
         cgi = true