Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
8c1d9c712c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      utils/csbhttp/httpcaller.go

+ 3 - 3
utils/csbhttp/httpcaller.go View File

@@ -223,9 +223,9 @@ func Invoke(params HttpParams) (str string, rtnHeaders map[string][]string, hcEr
223 223
 
224 224
 	if params.ct.jsonBody != "" {
225 225
 		_, err = json.Marshal(params.ct.jsonBody)
226
-		if err == nil {
227
-			return str, rtnHeaders, &HttpCallerException{Message: "failed to bad content type json string", CauseErr: err}
228
-		}
226
+		//if err == nil {
227
+		//	return str, rtnHeaders, &HttpCallerException{Message: "failed to bad content type json string", CauseErr: err}
228
+		//}
229 229
 		reqStr = params.ct.jsonBody
230 230
 		defaultContentType = params.ct.contentType
231 231
 		reqUrl = appendParams(reqUrl, data.Encode())