Use standard libray for retrieving header

This commit is contained in:
Dan Markham 2017-08-25 10:18:40 -07:00
parent 18b7c0892d
commit 92e0c90163

View File

@ -537,10 +537,7 @@ func (c *Context) IsWebsocket() bool {
}
func (c *Context) requestHeader(key string) string {
if values, _ := c.Request.Header[key]; len(values) > 0 {
return values[0]
}
return ""
return c.Request.Header.Get(key)
}
/************************************/