From 6d13319e689766f41cb6bd589379d4a692cae081 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Tue, 10 Sep 2024 10:38:49 +0100 Subject: [PATCH] fix slash issue --- .python-version | 2 +- pyproject.toml | 2 +- src/textual_serve/server.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.python-version b/.python-version index 143c2f5..371cfe3 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.8.19 +3.11.1 diff --git a/pyproject.toml b/pyproject.toml index 9462447..056393b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "textual-serve" -version = "1.1.0" +version = "1.1.1" description = "Turn your Textual TUIs in to web applications" authors = [ { name = "Will McGugan", email = "will@textualize.io" } diff --git a/src/textual_serve/server.py b/src/textual_serve/server.py index de55d28..b818790 100644 --- a/src/textual_serve/server.py +++ b/src/textual_serve/server.py @@ -265,7 +265,7 @@ class Server: } context["config"] = { "static": { - "url": get_url("static", filename="/") + "/", + "url": get_url("static", filename="/").rstrip("/") + "/", }, } context["application"] = {