all repos — nimhttpd @ 3f640b344f49652f0bc2c9c81e870c824d997130

A useful static file web server.

Fixed compilation warnings on Nim 0.18.0.
h3rald h3rald@h3rald.com
Sun, 11 Mar 2018 18:44:58 +0100
commit

3f640b344f49652f0bc2c9c81e870c824d997130

parent

fcdbacff6ec502372224045bf31d9e1f5f72b98c

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M nimhttpd.nimnimhttpd.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..."