diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8bf8d..fcec033 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ### Unreleased +### v0.2.2 (2012-03-31) + +- Fix a regression in path matching for the static directory application. + ### v0.2.1 (2012-03-31) - A hostname can now be specified in the route pattern, to facilitate running diff --git a/examples/guestbook.py b/examples/guestbook.py index 067926c..c3cb1d8 100644 --- a/examples/guestbook.py +++ b/examples/guestbook.py @@ -15,7 +15,7 @@ guestbook = pathlib.Path("guestbook.txt") app = jetforce.JetforceApplication() -@app.route("") +@app.route("", strict_trailing_slash=False) def index(request): data = ["Guestbook", "=>/submit Sign the Guestbook", ""] diff --git a/jetforce.py b/jetforce.py index bc6ccc8..8f33a9a 100755 --- a/jetforce.py +++ b/jetforce.py @@ -54,7 +54,7 @@ import urllib.parse if sys.version_info < (3, 7): sys.exit("Fatal Error: jetforce requires Python 3.7+") -__version__ = "0.2.1" +__version__ = "0.2.2" __title__ = "Jetforce Gemini Server" __author__ = "Michael Lazar" __license__ = "Floodgap Free Software License" @@ -150,7 +150,7 @@ class RoutePattern: A pattern for matching URLs with a single endpoint or route. """ - path: str = "" + path: str = ".*" scheme: str = "gemini" hostname: typing.Optional[str] = None diff --git a/setup.py b/setup.py index 8016391..7d0e464 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def long_description(): setuptools.setup( name="Jetforce", - version="0.2.1", + version="0.2.2", url="https://github.com/michael-lazar/jetforce", license="Other/Proprietary License", author="Michael Lazar",