diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-10-11 18:02:48 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-10-11 18:02:48 -0400 |
commit | 963354c5d7e78eb9fed447ab9b9984420573649c (patch) | |
tree | 896956c024e2b26f6517ea1a8138d83a7964254f /modules/middleware/context.go | |
parent | 17c1bc73833a25a5841bc5ed344f343535bf1afc (diff) | |
download | gitea-963354c5d7e78eb9fed447ab9b9984420573649c.tar.gz gitea-963354c5d7e78eb9fed447ab9b9984420573649c.zip |
Add raw, history file button, and other mirror fixes
Diffstat (limited to 'modules/middleware/context.go')
-rw-r--r-- | modules/middleware/context.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go index 1d9f573898..86e98c9071 100644 --- a/modules/middleware/context.go +++ b/modules/middleware/context.go @@ -75,12 +75,6 @@ type Context struct { } } -// Query querys form parameter. -func (ctx *Context) Query(name string) string { - ctx.Req.ParseForm() - return ctx.Req.Form.Get(name) -} - // HasError returns true if error occurs in form validation. func (ctx *Context) HasApiError() bool { hasErr, ok := ctx.Data["HasError"] |