From 7af1585650cdb587d20e7151189cd31405af0ff9 Mon Sep 17 00:00:00 2001 From: Denver Gingerich Date: Wed, 25 Jan 2017 20:26:59 +0000 Subject: [PATCH] b205c55 ok - Content-Length may help Conversations --- mpx-catapult.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mpx-catapult.rb b/mpx-catapult.rb index 92d686409cdcbbda8989491db8a2cd1b0fef5352..159966c1dd033e85de82795956ef706ecb132064 100755 --- a/mpx-catapult.rb +++ b/mpx-catapult.rb @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License along # with sgx-catapult. If not, see . -puts "Soprani.ca/MMS Proxy for XMPP - Catapult v0.002" +puts "Soprani.ca/MMS Proxy for XMPP - Catapult v0.003" require 'goliath' require 'net/http' @@ -97,7 +97,8 @@ class WebhookHandler < Goliath::API end # TODO: maybe need to reflect more headers (multi-part?) - [200, {}, response.body] + [200, {'Content-Length' => response['content-length']}, + response.body] end end