Skip to content

Commit e19278e

Browse files
chore: update custom timeout header name (#6)
1 parent f2353c8 commit e19278e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/finch-api/base_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ def initialize(
246246
end
247247

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

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

0 commit comments

Comments
 (0)