lib/clean_model/remote.rb in clean_model-0.0.4 vs lib/clean_model/remote.rb in clean_model-0.0.5
- old
+ new
@@ -17,10 +17,9 @@
WebClient::Base.new(connection)
end
def http_get(path, data=nil, headers={})
begin
- headers[:content_type] ||= 'application/json'
response = http.get(path, data, headers)
if response.is_a?(Net::HTTPSuccess)
block_given? ? yield(response) : response
else
raise InvalidResponse.new(response)
\ No newline at end of file