From bb6764fd2291a41aae336e08b710e0b364b2bb0d Mon Sep 17 00:00:00 2001 From: buddhamagnet Date: Sat, 26 Mar 2016 21:14:22 +0000 Subject: [PATCH] drop unused len variable --- middleware/fastcgi/fcgiclient_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/middleware/fastcgi/fcgiclient_test.go b/middleware/fastcgi/fcgiclient_test.go index fed5f2da..7df5b0f7 100644 --- a/middleware/fastcgi/fcgiclient_test.go +++ b/middleware/fastcgi/fcgiclient_test.go @@ -226,16 +226,11 @@ func DisabledTest(t *testing.T) { log.Println("test:", "post data (more than 60KB)") data := "" - length := 0 for i := 0x00; i < 0xff; i++ { v0 := strings.Repeat(string(i), 256) h := md5.New() io.WriteString(h, v0) k0 := fmt.Sprintf("%x", h.Sum(nil)) - - length += len(k0) - length += len(v0) - data += k0 + "=" + url.QueryEscape(v0) + "&" } sendFcgi(0, fcgiParams, []byte(data), nil, nil)