From 4ef352de6cb325a5f84f5b9bc0561bb0bc112220 Mon Sep 17 00:00:00 2001 From: brenocss <57222005+brenocss@users.noreply.github.com> Date: Wed, 5 Apr 2023 03:15:16 -0300 Subject: [PATCH 1/2] Update README.md (#113) mistype -rules --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 709e1ac..8d087ae 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ curl -v --user 'root:root' --upload-file file.txt http://localhost:8000/file.txt This will run the tool as TLS TCP server and enable custom responses based on YAML templates: ```sh -simplehttpserver -rule rules.yaml -tcp -tls -domain localhost +simplehttpserver -rules rules.yaml -tcp -tls -domain localhost ``` The rules are written as follows: From 9862845b558ac5b993e94dc7bbd7e543967b89df Mon Sep 17 00:00:00 2001 From: Ivan Latunov Date: Wed, 26 Jul 2023 03:22:35 +0300 Subject: [PATCH 2/2] pythonliststyle: Add viewport meta tag (#121) This makes the rendered HTML appear equally-sized on both mobile and desktop displays Co-authored-by: Ivan Latunov --- pkg/httpserver/pythonliststyle.go | 1 + test/pythonliststyle_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/pkg/httpserver/pythonliststyle.go b/pkg/httpserver/pythonliststyle.go index 65c6b0a..ee6342f 100644 --- a/pkg/httpserver/pythonliststyle.go +++ b/pkg/httpserver/pythonliststyle.go @@ -17,6 +17,7 @@ const ( + Directory listing for %s diff --git a/test/pythonliststyle_test.go b/test/pythonliststyle_test.go index 1826c8e..0ee449a 100644 --- a/test/pythonliststyle_test.go +++ b/test/pythonliststyle_test.go @@ -15,6 +15,7 @@ func TestServePythonStyleHtmlPageForDirectories(t *testing.T) { + Directory listing for /