From 0976a44c57db406007e57eb8455185b0c3aa56ba Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sat, 3 Jan 2015 00:06:10 +0200 Subject: [PATCH] uaiohttpclient: Switch to use StreamWriter.aclose(). --- uaiohttpclient/uaiohttpclient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uaiohttpclient/uaiohttpclient.py b/uaiohttpclient/uaiohttpclient.py index fa07fa44..e539fe77 100644 --- a/uaiohttpclient/uaiohttpclient.py +++ b/uaiohttpclient/uaiohttpclient.py @@ -56,7 +56,7 @@ def request_raw(method, url): # because some servers misbehave w/o it. query = "%s /%s HTTP/1.0\r\nHost: %s\r\nConnection: close\r\n\r\n" % (method, path, host) yield from writer.awrite(query.encode('latin-1')) -# yield from writer.close() +# yield from writer.aclose() return reader @@ -83,7 +83,7 @@ def request(method, url): if 301 <= status <= 303: redir_cnt += 1 - yield from reader.close() + yield from reader.aclose() continue break