Merge pull request #19172 from zyoshoka/utils/curl/fix-user-agent-type

utils/curl: fix `user_agent` types
This commit is contained in:
Sam Ford 2025-01-30 11:55:47 +00:00 committed by GitHub
commit c7572194ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -345,7 +345,7 @@ module Utils
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,
@ -490,7 +490,7 @@ module Utils
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])
}