From 975b96ae28bba463aa13d5c30abd276faa742e4d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 16 Sep 2010 09:47:33 +0000 Subject: [PATCH] minor refactoring --- lib/request/connect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index d899ce691..3e4708d13 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -326,8 +326,8 @@ class Connect: pageLength = int(headers['Content-Range'][headers['Content-Range'].find('/') + 1:]) else: kb.nullConnection = None - page, headers = Connect.getPage(get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders) - else: + + if not pageLength: page, headers = Connect.getPage(get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders) if content: