fix isajax
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -73,7 +73,7 @@ func (input *BeegoInput) Is(method string) bool { | ... | @@ -73,7 +73,7 @@ func (input *BeegoInput) Is(method string) bool { |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | func (input *BeegoInput) IsAjax() bool { | 75 | func (input *BeegoInput) IsAjax() bool { |
| 76 | return input.Header("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest" | 76 | return input.Header("X-Requested-With") == "XMLHttpRequest" |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | func (input *BeegoInput) IsSecure() bool { | 79 | func (input *BeegoInput) IsSecure() bool { | ... | ... |
-
Please register or sign in to post a comment