Skip to content
Myr

Use standard library for retrieving header (#1081)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Dan Markham · committed by Bo-Yi Wu · parent 18b7c08 · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:context.go+1 added-4 removed
535 unmodified lines
536 return false537}538539func (c *Context) requestHeader(key string) string {540 if values, _ := c.Request.Header[key]; len(values) > 0 {541 return values[0]542 }543 return ""540 return c.Request.Header.Get(key)541}542543/************************************/544/******** RESPONSE RENDERING ********/
252 unmodified lines