mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
fix content-type check
This commit is contained in:
parent
ab874f32d9
commit
646a86d15e
@ -449,7 +449,7 @@ class SpiffyTitles(callbacks.Plugin):
|
||||
print("too big bailing")
|
||||
request.close()
|
||||
return (generic_error, False)
|
||||
if 'content-length' in request.headers:
|
||||
if 'content-length' in request.headers and request.get('content-type', '') == "text/html":
|
||||
if int(request.headers['content-length']) > size:
|
||||
log.debug("SpiffyTitles: URL ignored due to exceeding content size")
|
||||
return (generic_error, False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user