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