We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e158f04 commit 575bf38Copy full SHA for 575bf38
client.go
@@ -2193,7 +2193,11 @@ func (c *Client) Clone(ctx context.Context) *Client {
2193
cc.formData = cloneURLValues(c.formData)
2194
cc.header = c.header.Clone()
2195
cc.pathParams = maps.Clone(c.pathParams)
2196
- cc.credentials = c.credentials.Clone()
+
2197
+ if c.credentials != nil {
2198
+ cc.credentials = c.credentials.Clone()
2199
+ }
2200
2201
cc.contentTypeEncoders = maps.Clone(c.contentTypeEncoders)
2202
cc.contentTypeDecoders = maps.Clone(c.contentTypeDecoders)
2203
cc.contentDecompressers = maps.Clone(c.contentDecompressers)
0 commit comments