Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lixizan committed Jun 21, 2022
1 parent ac30dee commit c3577f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c3577f4

Please sign in to comment.