mirror of
https://github.com/eolinker/apinto
synced 2025-10-08 10:10:28 +08:00
转发换库
This commit is contained in:
@@ -51,7 +51,9 @@ func NewResponseReader(header *fasthttp.ResponseHeader, statusCode int, body []b
|
||||
values := strings.Split(h, ":")
|
||||
vLen := len(values)
|
||||
if vLen < 2 {
|
||||
tmpHeader.Set(values[0], "")
|
||||
if values[0] != "" {
|
||||
tmpHeader.Set(values[0], "")
|
||||
}
|
||||
} else {
|
||||
tmpHeader.Set(values[0], values[1])
|
||||
}
|
||||
|
Reference in New Issue
Block a user