Compare commits

..

2 Commits

Author SHA1 Message Date
73b7d998c0 fix Header and Cookie fill
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-27 13:13:33 +03:00
3592052ac9 guard import
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-10-25 20:35:02 +03:00

View File

@@ -1,5 +1,5 @@
// Package http provides a http client // Package http provides a http client
package http package http // import "go.unistack.org/micro-client-http/v3"
import ( import (
"bufio" "bufio"
@@ -166,7 +166,7 @@ func newRequest(ctx context.Context, addr string, req client.Request, ct string,
for km, vm := range parameters { for km, vm := range parameters {
for k, required := range vm { for k, required := range vm {
v, err = rutil.StructFieldByPath(nmsg, k) v, err = rutil.StructFieldByPath(msg, k)
if err != nil { if err != nil {
return nil, errors.BadRequest("go.micro.client", err.Error()) return nil, errors.BadRequest("go.micro.client", err.Error())
} }