Fix path matching for static directory application

This commit is contained in:
Michael Lazar 2020-03-31 10:41:39 -04:00
parent f6952559dd
commit ff2832f034
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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", ""]

View File

@ -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

View File

@ -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",