Skip to content

Commit

Permalink
Revert "Add utf-8 as charset to Content_Type header for text files"
Browse files Browse the repository at this point in the history
This reverts commit 1b83bb7.
  • Loading branch information
beavailable committed Dec 15, 2023
1 parent 1b83bb7 commit d93bb85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions share.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ def respond_for_file(self, file):
filename = os.path.basename(file)
filesize = os.path.getsize(file)
content_type = self._guess_type(file)
if content_type.startswith('text'):
content_type += '; charset=utf-8'
content_range = self.headers['Range']
if filesize == 0 or not content_range:
self.send_response(HTTPStatus.OK)
Expand Down

0 comments on commit d93bb85

Please sign in to comment.