1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:50:54 +00:00

fix isajax

This commit is contained in:
astaxie 2013-10-29 15:45:45 +08:00
parent c1b2e1d0ca
commit 5d54acba30

View File

@ -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 {