mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
remove content-size check
this will never allow the chunking to progress if the content-size is larger than the config setting and there is already a counter to keep track of total response size as the chunker iterates
This commit is contained in:
parent
8516e82ef9
commit
43312a14c2
@ -448,10 +448,6 @@ class SpiffyTitles(callbacks.Plugin):
|
||||
if response_size > size:
|
||||
request.close()
|
||||
return (generic_error, False)
|
||||
if 'content-length' in request.headers and request.headers.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)
|
||||
request.raise_for_status()
|
||||
if request.history:
|
||||
# check the top two domain levels
|
||||
|
Loading…
x
Reference in New Issue
Block a user