From 2838c387ee5e2bcae155634880313564b71e2d94 Mon Sep 17 00:00:00 2001 From: Gerasimos Maropoulos Date: Thu, 15 Sep 2016 19:13:39 +0300 Subject: [PATCH] Fast silly fix from previous commit --- context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context.go b/context.go index 49ac719f..2801c2ed 100644 --- a/context.go +++ b/context.go @@ -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