lib/cm_sms/response.rb in cm-sms-0.1.1 vs lib/cm_sms/response.rb in cm-sms-0.1.2
- old
+ new
@@ -7,10 +7,10 @@
@body = @net_http_response.body
@code = @net_http_response.code
end
def success?
- body.empty? && code.to_i == 200
+ body.to_s.strip.empty? && code.to_i == 200
end
def failure?
!success?
end
\ No newline at end of file