mirror of
https://github.com/mastodon/mastodon.git
synced 2025-02-06 06:55:04 +00:00
Fix missing timeout options in Request
class (#33769)
This commit is contained in:
parent
9c85825ac6
commit
bd481204b5
|
@ -81,8 +81,11 @@ class Request
|
|||
max_hops: 3,
|
||||
on_redirect: ->(response, request) { re_sign_on_redirect(response, request) },
|
||||
},
|
||||
}.merge(options).merge(
|
||||
socket_class: use_proxy? || @allow_local ? ProxySocket : Socket,
|
||||
}.merge(options)
|
||||
timeout_class: PerOperationWithDeadline,
|
||||
timeout_options: TIMEOUT
|
||||
)
|
||||
@options = @options.merge(proxy_url) if use_proxy?
|
||||
@headers = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user