add GetHeader() to easily get header in Request

This commit is contained in:
FrozenKP 2017-03-17 00:25:10 +08:00
parent 701245fcd3
commit 617e515646

View File

@ -391,7 +391,7 @@ func (c *Context) Header(key, value string) {
}
// GetHeader is a shortcut for c.Request.Header.Get(key)
// It get the header in th request.
// It gets the header in the request.
func (c *Context) GetHeader(key string) {
return c.Request.Header.Get(key)
}