转发换库

This commit is contained in:
Liujian
2021-08-05 20:42:27 +08:00
parent e420c74808
commit 01062299a2

View File

@@ -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])
}