Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-07-31 15:01:44 +03:00
parent 73fc3d34f0
commit 57c2a5b95f

View File

@ -153,6 +153,7 @@ func newPathRequest(path string, method string, body string, msg interface{}, ta
var b strings.Builder
for _, fld := range tpl {
_, _ = b.WriteRune('/')
// nolint: nestif
if fld[0] == '{' && fld[len(fld)-1] == '}' {
if v, ok := fieldsmap[fld[1:len(fld)-1]]; ok {
if v != "" {