1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-03 17:10:18 +00:00

beego: support other analisys & fix typo

This commit is contained in:
astaxie
2014-04-28 18:07:30 +08:00
parent a6f55b59cf
commit 3b9a404138
3 changed files with 2 additions and 2 deletions

View File

@ -556,7 +556,7 @@ func (p *ControllerRegistor) ServeHTTP(rw http.ResponseWriter, r *http.Request)
goto Admin
}
if context.Input.IsPost() {
if !context.Input.IsGet() && !context.Input.IsHead() {
if CopyRequestBody && !context.Input.IsUpload() {
context.Input.CopyBody()
}