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