From 7177a73faefa09319caf24a1b8724c6a305d6daf Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 14 Jun 2016 13:59:08 +0530 Subject: [PATCH] Update gupshup.rb --- lib/gupshup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gupshup.rb b/lib/gupshup.rb index 5161c5b..0dad4ce 100644 --- a/lib/gupshup.rb +++ b/lib/gupshup.rb @@ -50,7 +50,7 @@ def call_api(opts = {}) puts "API call '#{opts[:method]}' failed: #{resp}" return false, resp end - return true, nil + return true, resp else return false, "HTTP Error : #{res}" end