all repos — nimhttpd @ 3b171b0e32b317bc0320256b9be0d694f96ebace

A useful static file web server.

Fixed deprecation warning.
h3rald h3rald@h3rald.com
Sat, 22 Apr 2023 13:28:16 +0000
commit

3b171b0e32b317bc0320256b9be0d694f96ebace

parent

f38c2c2ec6bcf2c572d83e4b7b99a4f4b15b4580

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M nimhttpd.nimblenimhttpd.nimble

@@ -23,7 +23,7 @@ installExt = @["nim"]

# Dependencies -requires "nim >= 1.4.4" +requires "nim >= 1.6.12" const compile = "nim c -d:release" const linux_x64 = "--cpu:amd64 --os:linux -o:nimhttpd"
M src/nimhttpd.nimsrc/nimhttpd.nim

@@ -239,7 +239,7 @@ title = val

of "port", "p": try: port = val.parseInt - except: + except CatchableError: if val == "": echo "Port not set." quit(2)