From 463faed6978e55d0e0a3ae1715c3740069742d52 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Sat, 20 Dec 2014 08:26:32 +0100 Subject: [PATCH] [web] new maximal downloaded size: 512k (old: 200k) --- tools/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/web.py b/tools/web.py index 8f522d6..576fb4d 100644 --- a/tools/web.py +++ b/tools/web.py @@ -99,10 +99,10 @@ def getURLContent(url, timeout=15): try: res = conn.getresponse() - size = int(res.getheader("Content-Length", 200000)) + size = int(res.getheader("Content-Length", 524288)) cntype = res.getheader("Content-Type") - if size > 200000 or (cntype is not None and cntype[:4] != "text" and cntype[:4] != "appl"): + if size > 524288 or (cntype is not None and cntype[:4] != "text" and cntype[:4] != "appl"): return None data = res.read(size)