mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
Fast silly fix from previous commit
This commit is contained in:
parent
741ecbf2fb
commit
2838c387ee
|
@ -280,8 +280,8 @@ func (ctx *Context) RequestHeader(k string) string {
|
|||
// IsAjax returns true if this request is an 'ajax request'( XMLHttpRequest)
|
||||
//
|
||||
// Read more at: http://www.w3schools.com/ajax/
|
||||
func IsAjax() bool {
|
||||
return (c.RequestHeader("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest")
|
||||
func (ctx *Context) IsAjax() bool {
|
||||
return ctx.RequestHeader("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest"
|
||||
}
|
||||
|
||||
// FormValueString returns a single value, as string, from post request's data
|
||||
|
|
Loading…
Reference in New Issue
Block a user