patch
This commit is contained in:
parent
1e13a9381f
commit
cba503e4bf
1 changed files with 2 additions and 2 deletions
|
@ -610,7 +610,7 @@ while True:
|
||||||
try:
|
try:
|
||||||
e = get(i, headers=headers, timeout=10)
|
e = get(i, headers=headers, timeout=10)
|
||||||
header = e.headers
|
header = e.headers
|
||||||
content_type = header.get('content-type').split(" ")[0]
|
content_type = header.get('content-type').split(";")[0]
|
||||||
content_len = header.get('Content-length')
|
content_len = header.get('Content-length')
|
||||||
if content_type in allowedparse:
|
if content_type in allowedparse:
|
||||||
if e.ok:
|
if e.ok:
|
||||||
|
@ -627,7 +627,7 @@ while True:
|
||||||
elif i[:7] == "http://":
|
elif i[:7] == "http://":
|
||||||
e = get(i, headers=headers, timeout=10)
|
e = get(i, headers=headers, timeout=10)
|
||||||
header = e.headers
|
header = e.headers
|
||||||
content_type = header.get('content-type').split(" ")[0]
|
content_type = header.get('content-type').split(";")[0]
|
||||||
content_len = header.get('Content-length')
|
content_len = header.get('Content-length')
|
||||||
if content_type in allowedparse:
|
if content_type in allowedparse:
|
||||||
if e.ok:
|
if e.ok:
|
||||||
|
|
Loading…
Reference in a new issue