From 22acdfeb5976da3891f62dc4fff37030c6090f37 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 2 Feb 2026 10:01:44 -0500 Subject: [PATCH] Fix because we require synchrony now --- sgx-bwmsgsv2.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index 032e72d3b8209eb4d1237131e16aa9d3e1bd30bf..d656f32f26d8290f5d62bdb2f27e97175dc8dbf6 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -272,7 +272,7 @@ module SGXbwmsgsv2 EM::HttpRequest.new( url_prefix + pth ).public_send( - m, + "a#{m}", head: { 'Authorization' => [token, secret] }.merge(head), @@ -309,7 +309,7 @@ module SGXbwmsgsv2 puts "MMSOOB: found a url node - checking if to make MMS..." body = s.respond_to?(:body) ? s.body : '' - EM::HttpRequest.new(un.text, tls: { verify_peer: true }).head.then { |http| + EM::HttpRequest.new(un.text, tls: { verify_peer: true }).ahead.then { |http| # If content is too large, or MIME type is not supported, place the link inside the body and do not send MMS. if http.response_header["CONTENT_LENGTH"].to_i > 3500000 || !MMS_MIME_TYPES.include?(http.response_header["CONTENT_TYPE"])