summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--message.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/message.go b/message.go
index ccd455f..d3a222d 100644
--- a/message.go
+++ b/message.go
@@ -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)