|
|
@@ -31,6 +31,11 @@ func PostJSON(uri string, obj interface{}) ([]byte, error) {
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
+
|
|
|
+ jsonData = bytes.Replace(jsonData, []byte("\\u003c"), []byte("<"), -1)
|
|
|
+ jsonData = bytes.Replace(jsonData, []byte("\\u003e"), []byte(">"), -1)
|
|
|
+ jsonData = bytes.Replace(jsonData, []byte("\\u0026"), []byte("&"), -1)
|
|
|
+
|
|
|
body := bytes.NewBuffer(jsonData)
|
|
|
response, err := http.Post(uri, "application/json;charset=utf-8", body)
|
|
|
if err != nil {
|