Fix static files router
This commit is contained in:
parent
35b92e1511
commit
4c66cb1854
|
@ -288,7 +288,7 @@ class Sanic:
|
|||
attach_to=middleware_or_request)
|
||||
|
||||
# Static Files
|
||||
def static(self, uri, file_or_directory, pattern='.+',
|
||||
def static(self, uri, file_or_directory, pattern=r'/?.+',
|
||||
use_modified_since=True, use_content_range=False):
|
||||
"""Register a root to serve files from. The input can either be a
|
||||
file or a directory. See
|
||||
|
|
Loading…
Reference in New Issue
Block a user