Skip to content

Commit

Permalink
Fix crash caused by anti-cache code.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Mar 31, 2020
1 parent 6bc7e12 commit 74c88db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jellyfin_mpv_shim/webclient_view/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@

def do_not_cache(response):
response.cache_control.no_store = True
response.cache_control.max_age = None
response.cache_control.public = False
if response.cache_control.max_age:
response.cache_control.max_age = None
if response.cache_control.public:
response.cache_control.public = False

# Based on https://stackoverflow.com/questions/15562446/
class Server(threading.Thread):
Expand Down

0 comments on commit 74c88db

Please sign in to comment.