footrest 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/footrest/response_middleware.rb +0 -5
- data/lib/footrest/version.rb +1 -1
- metadata +1 -1
@@ -35,7 +35,6 @@ module Footrest
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def process_response(env)
|
38
|
-
env[:raw_body] = env[:body] if preserve_raw?(env)
|
39
38
|
env[:body] = parse(env[:body])
|
40
39
|
end
|
41
40
|
|
@@ -70,9 +69,5 @@ module Footrest
|
|
70
69
|
def parse_response?(env)
|
71
70
|
env[:body].respond_to? :to_str
|
72
71
|
end
|
73
|
-
|
74
|
-
def preserve_raw?(env)
|
75
|
-
env[:request].fetch(:preserve_raw, @options[:preserve_raw])
|
76
|
-
end
|
77
72
|
end
|
78
73
|
end
|
data/lib/footrest/version.rb
CHANGED