Commit bb6764fd authored by buddhamagnet's avatar buddhamagnet

drop unused len variable

parent c981b08b
...@@ -226,16 +226,11 @@ func DisabledTest(t *testing.T) { ...@@ -226,16 +226,11 @@ func DisabledTest(t *testing.T) {
log.Println("test:", "post data (more than 60KB)") log.Println("test:", "post data (more than 60KB)")
data := "" data := ""
length := 0
for i := 0x00; i < 0xff; i++ { for i := 0x00; i < 0xff; i++ {
v0 := strings.Repeat(string(i), 256) v0 := strings.Repeat(string(i), 256)
h := md5.New() h := md5.New()
io.WriteString(h, v0) io.WriteString(h, v0)
k0 := fmt.Sprintf("%x", h.Sum(nil)) k0 := fmt.Sprintf("%x", h.Sum(nil))
length += len(k0)
length += len(v0)
data += k0 + "=" + url.QueryEscape(v0) + "&" data += k0 + "=" + url.QueryEscape(v0) + "&"
} }
sendFcgi(0, fcgiParams, []byte(data), nil, nil) sendFcgi(0, fcgiParams, []byte(data), nil, nil)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment