1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 03:00:39 +00:00

beego: support other analisys & fix typo

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

View File

@ -152,7 +152,7 @@ func (input *BeegoInput) IsWebsocket() bool {
// IsSecure returns boolean of whether file uploads in this request or not..
func (input *BeegoInput) IsUpload() bool {
return input.Header("Content-Type") == "multipart/form-data"
return strings.Contains(input.Header("Content-Type"), "multipart/form-data")
}
// IP returns request client ip.