Skip to content

Commit

Permalink
fix(requestconfig): copy over more fields when cloning (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Sep 10, 2024
1 parent dd4213a commit 3c7aa48
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions internal/requestconfig/requestconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,16 @@ func (cfg *RequestConfig) Clone(ctx context.Context) *RequestConfig {
return nil
}
new := &RequestConfig{
MaxRetries: cfg.MaxRetries,
Context: ctx,
Request: req,
HTTPClient: cfg.HTTPClient,
MaxRetries: cfg.MaxRetries,
RequestTimeout: cfg.RequestTimeout,
Context: ctx,
Request: req,
BaseURL: cfg.BaseURL,
HTTPClient: cfg.HTTPClient,
Middlewares: cfg.Middlewares,
APIKey: cfg.APIKey,
Organization: cfg.Organization,
Project: cfg.Project,
}

return new
Expand Down

0 comments on commit 3c7aa48

Please sign in to comment.