Commit 5d54acba authored by astaxie's avatar astaxie

fix isajax

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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment