mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-05 16:06:55 +08:00
update
This commit is contained in:
@@ -153,7 +153,7 @@ func (h *HTTPAPINodeHandler) makeHTTPCall(ctx context.Context, method, url strin
|
||||
}
|
||||
|
||||
// Try to parse response body as JSON
|
||||
var jsonBody interface{}
|
||||
var jsonBody any
|
||||
if err := json.Unmarshal(respBody, &jsonBody); err != nil {
|
||||
// If not JSON, store as string
|
||||
result["body"] = string(respBody)
|
||||
|
Reference in New Issue
Block a user