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:
cottongin 2022-05-05 12:19:19 -05:00
parent 8516e82ef9
commit 43312a14c2
No known key found for this signature in database
GPG Key ID: C0D8954A47DCB4ED

View File

@ -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