aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/http/request.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
commitca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09 (patch)
tree46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/http/request.go
parent1a3198907bf18ac961762024cf2a27581e6be6c3 (diff)
downloadgo-ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09.tar.xz
more "declared and not used".
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
Diffstat (limited to 'src/pkg/http/request.go')
-rw-r--r--src/pkg/http/request.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go
index 2467222bbc..2b425b7322 100644
--- a/src/pkg/http/request.go
+++ b/src/pkg/http/request.go
@@ -508,7 +508,7 @@ func ReadRequest(b *bufio.Reader) (req *Request, err os.Error) {
// like
// Cache-Control: no-cache
if v, present := req.Header["Pragma"]; present && v == "no-cache" {
- if cc, presentcc := req.Header["Cache-Control"]; !presentcc {
+ if _, presentcc := req.Header["Cache-Control"]; !presentcc {
req.Header["Cache-Control"] = "no-cache"
}
}