|
@@ -18,7 +18,6 @@ CSB-HTTP-SDK based on GO language.
|
18
|
18
|
*/
|
19
|
19
|
package csbhttp
|
20
|
20
|
|
21
|
|
-import ()
|
22
|
21
|
import (
|
23
|
22
|
"encoding/json"
|
24
|
23
|
"fmt"
|
|
@@ -108,10 +107,10 @@ func (hp *HttpParams) AddHeader(key string, value string) *HttpParams {
|
108
|
107
|
}
|
109
|
108
|
|
110
|
109
|
func (hp *HttpParams) SetContentBody(jsonStr string, byteArr []byte) error {
|
111
|
|
- if jsonStr != "" && byteArr != nil {
|
112
|
|
- errRtn := HttpCallerException{Message: "can not set jsonStr and byteArr parameters together!"}
|
113
|
|
- return errRtn
|
114
|
|
- }
|
|
110
|
+ //if jsonStr != "" && byteArr != nil {
|
|
111
|
+ // errRtn := HttpCallerException{Message: "can not set jsonStr and byteArr parameters together!"}
|
|
112
|
+ // return errRtn
|
|
113
|
+ //}
|
115
|
114
|
|
116
|
115
|
if jsonStr != "" {
|
117
|
116
|
hp.ct.jsonBody = jsonStr
|