Fixed compilation warnings on Nim 0.18.0.
h3rald h3rald@h3rald.com
Sun, 11 Mar 2018 18:44:58 +0100
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
nimhttpd.nim
→
nimhttpd.nim
@@ -1,13 +1,13 @@
-import asynchttpserver, asyncdispatch, asyncnet, os, strutils, mimetypes, times, parseopt2 +import asynchttpserver, asyncdispatch, asyncnet, os, strutils, mimetypes, times, parseopt from httpcore import HttpMethod, HttpHeaders const style = "style.css".slurp let appname = "NimHTTPd Web Server" -let appversion = "1.0.2" +let appversion = "1.0.3" let usage = appname & " v" & appversion & " - Tiny Static File Web Server" & """ - (c) 2014-2017 Fabio Cevasco + (c) 2014-2018 Fabio Cevasco Usage: nimhttpd [-p:port] [directory]@@ -111,7 +111,7 @@
proc printReqInfo(settings: NimHttpSettings, req: Request) = if not settings.logging: return - echo getLocalTime(getTime()), " - ", req.hostname, " ", req.reqMethod, " ", req.url.path + echo getTime().local, " - ", req.hostname, " ", req.reqMethod, " ", req.url.path proc handleCtrlC() {.noconv.} = echo "\nExiting..."