use the request header
This commit is contained in:
parent
5fd7da9de7
commit
f1984650f4
@ -238,7 +238,7 @@ func (h *httpTransportSocket) Recv(m *Message) error {
|
|||||||
m.Body = b
|
m.Body = b
|
||||||
|
|
||||||
// set headers
|
// set headers
|
||||||
for k, v := range h.r.Header {
|
for k, v := range r.Header {
|
||||||
if len(v) > 0 {
|
if len(v) > 0 {
|
||||||
m.Header[k] = v[0]
|
m.Header[k] = v[0]
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user