diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-14 00:24:45 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-11-14 00:24:45 +0300 |
commit | 00a9590e3a27c8784a9d3a95c669142aad4a025f (patch) | |
tree | 8a652afe1ab35955f1689c9a2af5e16b6931cb9d | |
parent | 59a1201da959ab01895361c0b5bb8bc1409f2b39 (diff) | |
download | micropython-00a9590e3a27c8784a9d3a95c669142aad4a025f.tar.gz micropython-00a9590e3a27c8784a9d3a95c669142aad4a025f.zip |
examples/http_client: Use read() instead of readall().
-rw-r--r-- | examples/network/http_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/http_client.py b/examples/network/http_client.py index b245a721ac..0791c8066b 100644 --- a/examples/network/http_client.py +++ b/examples/network/http_client.py @@ -19,7 +19,7 @@ def main(use_stream=False): # directly, but the line below is needed for CPython. s = s.makefile("rwb", 0) s.write(b"GET / HTTP/1.0\r\n\r\n") - print(s.readall()) + print(s.read()) else: s.send(b"GET / HTTP/1.0\r\n\r\n") print(s.recv(4096)) |