5d54acba by astaxie

fix isajax

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