commit | efcab1a52eda5485653d7d1b4c8678d930667dec | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@golang.org> | Mon Jan 16 16:40:45 2017 -0800 |
committer | Adam Langley <agl@golang.org> | Tue Jan 17 00:48:27 2017 +0000 |
tree | a92ed4f86c7f86cdb70b355b7162408ae9c4cd77 | |
parent | 038bd0bb6d7b20ac179a3ba09572afb6cca3c43c [diff] |
ssh/terminal: consume data before checking for an error. According to the io.Reader docs, Alex had it right the first time. (See discussion on https://golang.org/cl/25355.) Change-Id: Ib6fb9dfb99009e034263574e82d7e9d4828df38f Reviewed-on: https://go-review.googlesource.com/35242 TryBot-Result: Gobot Gobot <gobot@golang.org> Run-TryBot: Adam Langley <agl@golang.org> Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Adam Langley <agl@golang.org>