Merge 051e9100ac85526d329dc049c2891d61921c6d20 into c0048f645ee945c4db30593afdea10123e2c30a6

This commit is contained in:
Needrima 2025-10-22 09:35:38 -03:00 committed by GitHub
commit cc5f3c4e12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1020,7 +1020,7 @@ func (c *Context) Status(code int) {
// Header is an intelligent shortcut for c.Writer.Header().Set(key, value).
// It writes a header in the response.
// If value == "", this method removes the header `c.Writer.Header().Del(key)`
func (c *Context) Header(key, value string) {
func (c *Context) SetHeader(key, value string) {
if value == "" {
c.Writer.Header().Del(key)
return