mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-26 23:46:49 +09:00
Raise the TLS alert from a subclass instead of extending one connection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ce7b5d4ea0
commit
8d4a5264cf
2 files changed
+7
-5
No files matched your search
@@ -108,8 +108,8 @@ module PushServiceTestHelper
|
||||
end
|
||||
|
||||
# Built as WebPush::PersistentRequest builds it for a delivery.
|
||||
def pinned_connection(server, ip = IP)
|
||||
WebPush::Connections::HTTP.new(HOST, server.port, nil).tap do |http|
|
||||
def pinned_connection(server, ip = IP, http_class: WebPush::Connections::HTTP)
|
||||
http_class.new(HOST, server.port, nil).tap do |http|
|
||||
http.ipaddr = ip
|
||||
http.use_ssl = true
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user