Skip to content

Commit

Permalink
chore: update custom timeout header name (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-ci-bot committed Mar 5, 2025
1 parent 0bfd6f6 commit 05892f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modern_treasury/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def initialize(
end

timeout = opts.fetch(:timeout, @timeout).to_f.clamp((0..))
unless headers.key?("x-stainless-read-timeout") || timeout.zero?
headers["x-stainless-read-timeout"] = timeout.to_s
unless headers.key?("x-stainless-timeout") || timeout.zero?
headers["x-stainless-timeout"] = timeout.to_s
end

headers.reject! { |_, v| v.to_s.empty? }
Expand Down

0 comments on commit 05892f9

Please sign in to comment.