diff options
author | clsr <clsr@clsr.net> | 2023-11-05 04:47:26 +0000 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2023-11-05 04:47:26 +0000 |
commit | 14fc8e6aa500a2e962274c87af8f8e14fdce0270 (patch) | |
tree | 18c4b680ddc5e86b873f92f0f1d2b8a9b08328e9 | |
parent | 62ed9f3969e6d38eab9f843c398e97cdb6586329 (diff) | |
download | cnp-go-master.tar.gz cnp-go-master.zip |
-rw-r--r-- | message.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -77,7 +77,7 @@ func (msg *Message) Close() error { // ComputeLength sets the length header parameter based on the message body. // First, msg.TryComputeLength() is attempted; if that fails, the request is -// fully read into a bytes.Buffer and msg.Body is set to it. +// fully read into a bytes.Reader and msg.Body is set to it. func (msg *Message) ComputeLength() error { if !msg.TryComputeLength() { buf, err := ioutil.ReadAll(msg.Body) |