Skip to content

Commit

Permalink
fixed UnboundLocalError
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahx committed Apr 13, 2017
1 parent afd51e0 commit ae09dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sanic/static.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def _handler(request, file_uri=None):
# Merge served directory and requested file if provided
# Strip all / that in the beginning of the URL to help prevent python
# from herping a derp and treating the uri as an absolute path
root_path = file_or_directory
root_path = file_path = file_or_directory
if file_uri:
file_path = path.join(
file_or_directory, sub('^[/]*', '', file_uri))
Expand Down

0 comments on commit ae09dec

Please sign in to comment.