Skip to content

Commit

Permalink
Merge pull request #3901 from camptocamp/fix-layers-url
Browse files Browse the repository at this point in the history
Don't creates a route that ends with a slash
  • Loading branch information
sbrunner committed Jul 5, 2018
2 parents 290ca28 + cc794a4 commit 018acad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoportal/c2cgeoportal_geoportal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ def handle(event: InvalidateCacheEvent):
)
# There is no view corresponding to that route, it is to be used from
# mako templates to get the root of the "layers" web service
config.add_route("layers_root", "/layers/", request_method="HEAD")
config.add_route("layers_root", "/layers", request_method="HEAD")

# Resource proxy (load external url, useful when loading non https content)
config.add_route("resourceproxy", "/resourceproxy", request_method="GET")
Expand Down

0 comments on commit 018acad

Please sign in to comment.