@@ -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"])