Fix path matching for static directory application
This commit is contained in:
parent
f6952559dd
commit
ff2832f034
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
### Unreleased
|
### Unreleased
|
||||||
|
|
||||||
|
### v0.2.2 (2012-03-31)
|
||||||
|
|
||||||
|
- Fix a regression in path matching for the static directory application.
|
||||||
|
|
||||||
### v0.2.1 (2012-03-31)
|
### v0.2.1 (2012-03-31)
|
||||||
|
|
||||||
- A hostname can now be specified in the route pattern, to facilitate running
|
- 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 = jetforce.JetforceApplication()
|
||||||
|
|
||||||
|
|
||||||
@app.route("")
|
@app.route("", strict_trailing_slash=False)
|
||||||
def index(request):
|
def index(request):
|
||||||
data = ["Guestbook", "=>/submit Sign the Guestbook", ""]
|
data = ["Guestbook", "=>/submit Sign the Guestbook", ""]
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ import urllib.parse
|
||||||
if sys.version_info < (3, 7):
|
if sys.version_info < (3, 7):
|
||||||
sys.exit("Fatal Error: jetforce requires Python 3.7+")
|
sys.exit("Fatal Error: jetforce requires Python 3.7+")
|
||||||
|
|
||||||
__version__ = "0.2.1"
|
__version__ = "0.2.2"
|
||||||
__title__ = "Jetforce Gemini Server"
|
__title__ = "Jetforce Gemini Server"
|
||||||
__author__ = "Michael Lazar"
|
__author__ = "Michael Lazar"
|
||||||
__license__ = "Floodgap Free Software License"
|
__license__ = "Floodgap Free Software License"
|
||||||
|
@ -150,7 +150,7 @@ class RoutePattern:
|
||||||
A pattern for matching URLs with a single endpoint or route.
|
A pattern for matching URLs with a single endpoint or route.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
path: str = ""
|
path: str = ".*"
|
||||||
scheme: str = "gemini"
|
scheme: str = "gemini"
|
||||||
hostname: typing.Optional[str] = None
|
hostname: typing.Optional[str] = None
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -10,7 +10,7 @@ def long_description():
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="Jetforce",
|
name="Jetforce",
|
||||||
version="0.2.1",
|
version="0.2.2",
|
||||||
url="https://github.com/michael-lazar/jetforce",
|
url="https://github.com/michael-lazar/jetforce",
|
||||||
license="Other/Proprietary License",
|
license="Other/Proprietary License",
|
||||||
author="Michael Lazar",
|
author="Michael Lazar",
|
||||||
|
|
Loading…
Reference in New Issue