mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 15:10:50 +00:00
fix isajax
This commit is contained in:
parent
c1b2e1d0ca
commit
5d54acba30
@ -73,7 +73,7 @@ func (input *BeegoInput) Is(method string) bool {
|
||||
}
|
||||
|
||||
func (input *BeegoInput) IsAjax() bool {
|
||||
return input.Header("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest"
|
||||
return input.Header("X-Requested-With") == "XMLHttpRequest"
|
||||
}
|
||||
|
||||
func (input *BeegoInput) IsSecure() bool {
|
||||
|
Loading…
Reference in New Issue
Block a user