diff options
Diffstat (limited to 'bottle.py')
-rwxr-xr-x | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2878,7 +2878,7 @@ def static_file(filename, root, root = os.path.join(os.path.abspath(root), '') filename = os.path.abspath(os.path.join(root, filename.strip('/\\'))) - headers = headers or {} + headers = headers.copy() if headers else {} if not filename.startswith(root): return HTTPError(403, "Access denied.") |