bug: url_for in blueprint may have // at the beginning
This commit is contained in:
parent
d015d6b103
commit
ff3d33d5e0
|
@ -41,7 +41,7 @@ class Blueprint:
|
|||
# Prepend the blueprint URI prefix if available
|
||||
uri = url_prefix + future.uri if url_prefix else future.uri
|
||||
app.route(
|
||||
uri=uri,
|
||||
uri=uri[1:] if uri.startswith('//') else uri,
|
||||
methods=future.methods,
|
||||
host=future.host or self.host
|
||||
)(future.handler)
|
||||
|
|
Loading…
Reference in New Issue
Block a user