From 473af8f9250b35aecbb96b44e044bfa299031460 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 19 五月 2021 16:51:44 +0800 Subject: [PATCH] fix formMap not init --- sbusClient.go | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sbusClient.go b/sbusClient.go index 6d4471c..421025c 100644 --- a/sbusClient.go +++ b/sbusClient.go @@ -68,6 +68,7 @@ if contentType == CONTENT_TYPE_FORM || contentType == CONTENT_TYPE_MULFORM { if body != nil { req.PostFormMap = make(map[string][]string) + req.FormMap = map[string][]string{} for k,v := range body { switch v.(type) { case string: -- Gitblit v1.8.0