Skip to content

Commit

Permalink
Merge pull request #19172 from zyoshoka/utils/curl/fix-user-agent-type
Browse files Browse the repository at this point in the history
utils/curl: fix `user_agent` types
  • Loading branch information
samford authored Jan 30, 2025
2 parents f259368 + 9e93b52 commit c757219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/utils/curl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def url_protected_by_incapsula?(response)
url: String,
url_type: String,
specs: T::Hash[Symbol, String],
user_agents: T::Array[Symbol],
user_agents: T::Array[T.any(String, Symbol)],
referer: T.nilable(String),
check_content: T::Boolean,
strict: T::Boolean,
Expand Down Expand Up @@ -490,7 +490,7 @@ def curl_check_http_content(url, url_type, specs: {}, user_agents: [:default], r
specs: T::Hash[Symbol, String],
hash_needed: T::Boolean,
use_homebrew_curl: T::Boolean,
user_agent: Symbol,
user_agent: T.any(String, Symbol),
referer: T.nilable(String),
).returns(T::Hash[Symbol, T.untyped])
}
Expand Down

0 comments on commit c757219

Please sign in to comment.