Merge branch 'master' into travis

This commit is contained in:
Bo-Yi Wu 2017-08-26 00:43:39 -05:00 committed by GitHub
commit 5ad781d723

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)
}
/************************************/