Skip to content

Commit

Permalink
fix: return error in ClientMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
jkskj committed Jul 10, 2024
1 parent a136d45 commit 0728b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (g *gzipClientMiddleware) ClientMiddleware(next client.Endpoint) client.End

err = next(ctx, req, resp)
if err != nil {
return
return err
}
if fn := g.DecompressFnForClient; fn != nil && strings.EqualFold(resp.Header.Get("Content-Encoding"), "gzip") {
f := fn(next)
Expand Down

0 comments on commit 0728b72

Please sign in to comment.