Fix path matching for static directory application
This commit is contained in:
parent
f6952559dd
commit
ff2832f034
|
@ -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
|
||||
|
|
|
@ -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", ""]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue