From: qydysky Date: Tue, 8 Oct 2024 04:29:50 +0000 (+0000) Subject: 1 X-Git-Tag: v0.1.20241008043144 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=17288c4dc3de070547d2a7747e1588deb8c6ff8c;p=front%2F.git 1 --- diff --git a/http.go b/http.go index 1a600fc..d548637 100644 --- a/http.go +++ b/http.go @@ -43,7 +43,12 @@ func (httpDealer) Deal(ctx context.Context, w http.ResponseWriter, r *http.Reque url = dealUri(url, chosenBack.getDealerReqUri()) - req, e := http.NewRequestWithContext(ctx, r.Method, url, r.Body) + reqBody, e := r.GetBody() + if e != nil { + return ErrReqCreFail + } + + req, e := http.NewRequestWithContext(ctx, r.Method, url, reqBody) if e != nil { return ErrReqCreFail }