mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-28 03:57:02 +02:00
fix(transport/http): no need to call EncodeURL twice (#3218)
This commit is contained in:
parent
9106991c09
commit
50cad79c96
@ -132,8 +132,8 @@ func TestEncodeURL(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
if EncodeURL(test.pathTemplate, test.request, test.needQuery) != test.want {
|
if path := EncodeURL(test.pathTemplate, test.request, test.needQuery); path != test.want {
|
||||||
t.Fatalf("want: %s, got: %s", test.want, EncodeURL(test.pathTemplate, test.request, test.needQuery))
|
t.Fatalf("want: %s, got: %s", test.want, path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user