diff options
Diffstat (limited to 'routers/web/goget.go')
-rw-r--r-- | routers/web/goget.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/goget.go b/routers/web/goget.go index 77934e7f55..1680153b49 100644 --- a/routers/web/goget.go +++ b/routers/web/goget.go @@ -18,7 +18,7 @@ import ( ) func goGet(ctx *context.Context) { - if ctx.Req.Method != "GET" || ctx.Query("go-get") != "1" || len(ctx.Req.URL.Query()) > 1 { + if ctx.Req.Method != "GET" || ctx.Form("go-get") != "1" || len(ctx.Req.URL.Query()) > 1 { return } |