Skip to content

Commit

Permalink
MIMEHandler fallback handlers improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed Sep 28, 2021
1 parent 58c4f83 commit 64961af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thug/DOM/MIMEHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ def register_empty_handlers(self):
self['text/javascript'] = None

def register_fallback_handlers(self):
self['text/plain'] = self.handle_fallback
self['text/plain'] = self.handle_fallback
self['application/octet-stream'] = self.handle_fallback

def register_handler(self, mimetype, handler):
self[mimetype] = handler
Expand Down

0 comments on commit 64961af

Please sign in to comment.