mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Return default blank content type (Fixes Tautulli/Tautulli-Issues#165)
This commit is contained in:
parent
5dd7806c0e
commit
cb81bcac57
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ def server_message(response, return_msg=False):
|
||||||
message = None
|
message = None
|
||||||
|
|
||||||
# First attempt is to 'read' the response as HTML
|
# First attempt is to 'read' the response as HTML
|
||||||
if "text/html" in response.headers.get("content-type"):
|
if "text/html" in response.headers.get("content-type", ""):
|
||||||
try:
|
try:
|
||||||
soup = BeautifulSoup(response.content, "html5lib")
|
soup = BeautifulSoup(response.content, "html5lib")
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue