|
@@ -47,6 +47,11 @@ func Unmarshal(response AcsResponse, httpResponse *http.Response, format string)
|
|
|
// common response need not unmarshal
|
|
// common response need not unmarshal
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ if len(response.GetHttpContentBytes()) == 0 {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if strings.ToUpper(format) == "JSON" {
|
|
if strings.ToUpper(format) == "JSON" {
|
|
|
initJsonParserOnce()
|
|
initJsonParserOnce()
|
|
|
err = jsonParser.Unmarshal(response.GetHttpContentBytes(), response)
|
|
err = jsonParser.Unmarshal(response.GetHttpContentBytes(), response)
|