scorpio 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +0,0 @@
1
- require 'api_hammer'
2
-
3
- # hax
4
- class Faraday::Response
5
- def media_type
6
- content_type_attrs.media_type
7
- end
8
- def content_type_attrs
9
- ApiHammer::ContentTypeAttrs.new(content_type)
10
- end
11
- def content_type
12
- _, ct = env.response_headers.detect { |k,v| k =~ /\Acontent[-_]type\z/i }
13
- ct
14
- end
15
- end