From 3c862b2fc518788d66175c8b234752f295e4ec33 Mon Sep 17 00:00:00 2001 From: Siarhei Siniak Date: Sun, 5 Feb 2023 12:24:49 +0300 Subject: [PATCH] [~] Refactor --- dotfiles/.local/bin/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 710ab20..3884d61 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -905,7 +905,7 @@ def http_server(argv): index_section = 'autoindex on;' - if len(sys.argv) == 3 and sys.argv[2] == '--public': + if options.public: location_section = 'location / {%s}' % index_section else: token = os.urandom(16).hex()