Skip to content

Commit 236a51c

Browse files
committed
speedup goGet
1 parent bd06fdc commit 236a51c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/goget.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
)
1919

2020
func goGet(ctx *context.Context) {
21-
if ctx.Req.Method != "GET" || ctx.FormString("go-get") != "1" || len(ctx.Req.URL.Query()) > 1 {
21+
if ctx.Req.Method != "GET" || len(ctx.Req.URL.RawQuery) < 8 || ctx.FormString("go-get") != "1" {
2222
return
2323
}
2424

0 commit comments

Comments
 (0)