Skip to content

Commit

Permalink
🎨
Browse files Browse the repository at this point in the history
  • Loading branch information
lstuma committed Nov 1, 2023
1 parent efd0389 commit 76abb7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pigeon/files/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def handle_media_request(request: HTTPRequest):

if os.path.exists(local_path) and os.path.isfile(local_path):
# return file
data, encoding = fetch_file(local_path,
[encoding.strip() for encoding in request.headers('Accept-Encoding').split(',')])
data, encoding = fetch_file(local_path, [encoding.strip() for encoding in request.headers('Accept-Encoding').split(',')])

# get mimetype for file
mimetype = mimetypes.guess_type(local_path)[0]
Expand Down

0 comments on commit 76abb7f

Please sign in to comment.