mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
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
|
||||
|
||||
// set headers
|
||||
for k, v := range h.r.Header {
|
||||
for k, v := range r.Header {
|
||||
if len(v) > 0 {
|
||||
m.Header[k] = v[0]
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user