all repos — nimhttpd @ cac12c55b7fdf1da406e52494d8f40b7b7cb8a7d

A useful static file web server.

Minor fixes.
Fabio Cevasco fabio.cevasco@it.abb.com
Wed, 10 Nov 2021 12:39:13 +0100
commit

cac12c55b7fdf1da406e52494d8f40b7b7cb8a7d

parent

71f2dd93dcfa7a5fb1343ad318e95c39f56295c9

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

jump to
M src/nimhttpd.nimsrc/nimhttpd.nim

@@ -6,8 +6,7 @@ os, strutils,

mimetypes, times, parseopt, - uri, - times + uri from httpcore import HttpMethod, HttpHeaders

@@ -71,7 +70,6 @@

proc h_page(settings:NimHttpSettings, content, title, subtitle: string): string = var footer = """<div id="footer">$1 v$2</div>""" % [settings.name, settings.version] - var titles = "" result = """ <!DOCTYPE html> <html lang="en">