mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-30 07:21:16 -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")
|
print("too big bailing")
|
||||||
request.close()
|
request.close()
|
||||||
return (generic_error, False)
|
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:
|
if int(request.headers['content-length']) > size:
|
||||||
log.debug("SpiffyTitles: URL ignored due to exceeding content size")
|
log.debug("SpiffyTitles: URL ignored due to exceeding content size")
|
||||||
return (generic_error, False)
|
return (generic_error, False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user