]> Cypherpunks repositories - gostls13.git/commitdiff
http: corrected comment for Response.GetHeader.
authorAndrew Gerrand <adg@golang.org>
Tue, 2 Mar 2010 21:53:22 +0000 (08:53 +1100)
committerAndrew Gerrand <adg@golang.org>
Tue, 2 Mar 2010 21:53:22 +0000 (08:53 +1100)
Fixes #622.

R=rsc
CC=golang-dev
https://golang.org/cl/224084

src/pkg/http/response.go

index 2e7c532ff96edf15bfcaefd61a1849ea10270a6d..12751b43e78f27dc41440ed5af12decd1bbc34d5 100644 (file)
@@ -17,9 +17,9 @@ import (
 )
 
 var respExcludeHeader = map[string]int{
-       "Content-Length":    0,
+       "Content-Length": 0,
        "Transfer-Encoding": 0,
-       "Trailer":           0,
+       "Trailer": 0,
 }
 
 // Response represents the response from an HTTP request.
@@ -152,11 +152,10 @@ func (r *Response) AddHeader(key, value string) {
        }
 }
 
-// GetHeader returns the value of the response header with the given
-// key, and true.  If there were multiple headers with this key, their
-// values are concatenated, with a comma delimiter.  If there were no
-// response headers with the given key, it returns the empty string and
-// false.  Keys are not case sensitive.
+// GetHeader returns the value of the response header with the given key.
+// If there were multiple headers with this key, their values are concatenated,
+// with a comma delimiter.  If there were no response headers with the given
+// key, GetHeader returns an empty string.  Keys are not case sensitive.
 func (r *Response) GetHeader(key string) (value string) {
        value, _ = r.Header[CanonicalHeaderKey(key)]
        return