From c3577f4fa21a37281644b40235d75f0e1f107cd7 Mon Sep 17 00:00:00 2001 From: lixizan Date: Tue, 21 Jun 2022 15:19:47 +0800 Subject: [PATCH] fix --- request.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/request.go b/request.go index 38c941d..534f0cc 100644 --- a/request.go +++ b/request.go @@ -63,9 +63,10 @@ func (this *Request) SetClient(client *http.Client) *Request { return this } -func (this *Request) SetEncoder(encoder Encoder) { +func (this *Request) SetEncoder(encoder Encoder) *Request { this.encoder = encoder this.headers["Content-Type"] = encoder.GetContentType() + return this } // SetErrorChecker check response error