mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
drop unused len variable
This commit is contained in:
parent
c981b08b23
commit
bb6764fd22
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue