From 1203424f3da95a463cf501ecd187e9897bcc4a25 Mon Sep 17 00:00:00 2001 From: peakxie Date: Thu, 9 Apr 2020 14:21:26 +0800 Subject: [PATCH] fix --- httpx/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/http.go b/httpx/http.go index acc5540..53762f3 100644 --- a/httpx/http.go +++ b/httpx/http.go @@ -72,7 +72,7 @@ func PostP(client *http.Client, url string, request proto.Message, response prot if response != nil { err = proto.Unmarshal(rspBody, response) if err != nil { - return nil, err + return rspBody, err } } return rspBody, nil