Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
adf1e4c5
Commit
adf1e4c5
authored
Mar 02, 2010
by
Andrew Gerrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: corrected comment for Response.GetHeader.
Fixes #622. R=rsc CC=golang-dev
https://golang.org/cl/224084
parent
f44fa9b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
response.go
src/pkg/http/response.go
+4
-5
No files found.
src/pkg/http/response.go
View file @
adf1e4c5
...
@@ -152,11 +152,10 @@ func (r *Response) AddHeader(key, value string) {
...
@@ -152,11 +152,10 @@ func (r *Response) AddHeader(key, value string) {
}
}
}
}
// GetHeader returns the value of the response header with the given
// GetHeader returns the value of the response header with the given key.
// key, and true. If there were multiple headers with this key, their
// If there were multiple headers with this key, their values are concatenated,
// values are concatenated, with a comma delimiter. If there were no
// with a comma delimiter. If there were no response headers with the given
// response headers with the given key, it returns the empty string and
// key, GetHeader returns an empty string. Keys are not case sensitive.
// false. Keys are not case sensitive.
func
(
r
*
Response
)
GetHeader
(
key
string
)
(
value
string
)
{
func
(
r
*
Response
)
GetHeader
(
key
string
)
(
value
string
)
{
value
,
_
=
r
.
Header
[
CanonicalHeaderKey
(
key
)]
value
,
_
=
r
.
Header
[
CanonicalHeaderKey
(
key
)]
return
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment