all repos — nimhttpd @ 7a55e1ebe37b4ece14baffc7430edf86d318146d

A useful static file web server.

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

7a55e1ebe37b4ece14baffc7430edf86d318146d

parent

4cf3a1c3325736b98b31f5f51389ba6f4ee6ffbf

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)