From 0ebfa231d21b255d84cfdb8a618cfe397db6c497 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 15 Sep 2009 09:41:59 -0700 Subject: 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 --- src/pkg/http/request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/http/request.go') diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index 2467222bb..2b425b732 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" } } -- cgit v1.2.3