lib/webmock/response.rb in webmock-0.9.0 vs lib/webmock/response.rb in webmock-0.9.1
- old
+ new
@@ -74,9 +74,10 @@
options = {}
options[:headers] = {}
response.each_header {|name, value| options[:headers][name] = value}
options[:headers]['transfer-encoding'] = transfer_encoding if transfer_encoding
options[:body] = response.read_body
+ options[:status] = response.code.to_i
options
end
end
end