mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:20:55 +00:00
beego: support other analisys & fix typo
This commit is contained in:
parent
a6f55b59cf
commit
3b9a404138
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user