Skip to content

Commit

Permalink
feat: unleash-interval header
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew committed Feb 28, 2025
1 parent ce5a93b commit 8338c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/unleash/toggle_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fetch
return if Unleash.configuration.disable_client

headers = (Unleash.configuration.http_headers || {}).dup
headers.merge!( {'UNLEASH-INTERVAL' => Unleash.configuration.refresh_interval.to_s })
headers.merge!({'UNLEASH-INTERVAL' => Unleash.configuration.refresh_interval.to_s })
response = Unleash::Util::Http.get(Unleash.configuration.fetch_toggles_uri, etag, headers)

if response.code == '304'
Expand Down

0 comments on commit 8338c92

Please sign in to comment.