summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/wget.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index f7d1de26b7..e6d9f528d0 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -208,10 +208,7 @@ class Wget(FetchMethod):
208 fetch.connection_cache.remove_connection(h.host, h.port) 208 fetch.connection_cache.remove_connection(h.host, h.port)
209 raise urllib.error.URLError(err) 209 raise urllib.error.URLError(err)
210 else: 210 else:
211 try: 211 r = h.getresponse()
212 r = h.getresponse(buffering=True)
213 except TypeError: # buffering kw not supported
214 r = h.getresponse()
215 212
216 # Pick apart the HTTPResponse object to get the addinfourl 213 # Pick apart the HTTPResponse object to get the addinfourl
217 # object initialized properly. 214 # object initialized properly.