From 5d54acba30029fb7b5dcf9603d9e1f9bb3ffdd31 Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 29 Oct 2013 15:45:45 +0800 Subject: [PATCH] fix isajax --- context/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {