diff --git a/context/input.go b/context/input.go index c0ebb08b..50970895 100644 --- a/context/input.go +++ b/context/input.go @@ -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 {