From c5c0d535b6873cbe80c21d8778681d4c3fb80b84 Mon Sep 17 00:00:00 2001 From: FrozenKP Date: Fri, 17 Mar 2017 00:32:38 +0800 Subject: [PATCH] GetHeader() add return string --- context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context.go b/context.go index 48362519..ea532545 100644 --- a/context.go +++ b/context.go @@ -392,7 +392,7 @@ func (c *Context) Header(key, value string) { // GetHeader is a shortcut for c.Request.Header.Get(key) // It gets the header in the request. -func (c *Context) GetHeader(key string) { +func (c *Context) GetHeader(key string) string { return c.Request.Header.Get(key) }