Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2012-08-12 19:19:07 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2012-08-12 19:19:07 (GMT)
commitd86887c325f0bedb4beaa1214a828269779db788 (patch)
tree61999f2e7862d1eaab5f3401fd8fc2737cc61d67
parentf6e869801f34e3190d47379d7069bb74eeba43de (diff)
Disable prefetching in http requests
-rw-r--r--sugar_network/toolkit/http.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sugar_network/toolkit/http.py b/sugar_network/toolkit/http.py
index 437b2ca..1c14cbf 100644
--- a/sugar_network/toolkit/http.py
+++ b/sugar_network/toolkit/http.py
@@ -13,6 +13,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# pylint: disable-msg=E1103
+
import os
import cgi
import json
@@ -140,7 +142,7 @@ def _request(method, path, data=None, headers=None, allowed_response=None,
'sugar_user_signature': _sign(key_path, uid),
}
- _session = Session(headers=headers, verify=verify)
+ _session = Session(headers=headers, verify=verify, prefetch=False)
if not path:
path = ['']