5d54acba by astaxie

fix isajax

1 parent c1b2e1d0
...@@ -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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!