app/mixin_logic/umlaut_http.rb in umlaut-3.1.0.pre2 vs app/mixin_logic/umlaut_http.rb in umlaut-3.1.0

- old
+ new

@@ -89,10 +89,13 @@ options[:redirects_left] = options[:redirects_left] - 1 return http_fetch(response['location'], options) else - response.value if options[:raise_on_http_error_code] + if options[:raise_on_http_error_code] + Rails.logger.warn("UmlautHttp#http_fetch: unexpected non-successful response: #{uri}: #{response}") unless response.is_a?(Net::HTTPSuccess) + response.value + end return response end end