Skip to content

Commit

Permalink
Specify encoding for thumbnails path
Browse files Browse the repository at this point in the history
Fixes an issue that list view miniatures of the imported clips not
rendered if path contains non-English letters.

By defult the ".text" field in response uses ISO-8859-1 charset (RFC
2616 specs) while server sends utf-8 encoded path string just few
strings below in the code.
  • Loading branch information
SuslikV committed Feb 16, 2020
1 parent bac52ca commit 7deb3f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def do_GET(self):
if not only_path:
self.send_header('Content-type', 'image/png')
else:
self.send_header('Content-type', 'text/html')
self.send_header('Content-type', 'text/html; charset=utf-8')
self.end_headers()

# Locate thumbnail
Expand Down

0 comments on commit 7deb3f7

Please sign in to comment.