lib/google/api_client/charset.rb in arvados-google-api-client-0.8.7.4 vs lib/google/api_client/charset.rb in arvados-google-api-client-0.8.7.5
- old
+ new
@@ -1,11 +1,11 @@
require 'faraday'
require 'zlib'
module Google
class APIClient
- class Charset < Faraday::Response::Middleware
+ class Charset < Faraday::Middleware
include Google::APIClient::Logging
def charset_for_content_type(type)
if type
m = type.match(/(?:charset|encoding)="?([a-z0-9-]+)"?/i)
@@ -28,6 +28,6 @@
end
end
end
end
-Faraday::Response.register_middleware :charset => Google::APIClient::Charset
\ No newline at end of file
+Faraday::Response.register_middleware :charset => Google::APIClient::Charset