lib/reel/response.rb in reel-0.4.0.pre4 vs lib/reel/response.rb in reel-0.4.0.pre5
- old
+ new
@@ -15,10 +15,10 @@
def initialize(status, body_or_headers = nil, body = nil)
self.status = status
if body_or_headers.is_a?(Hash)
- headers = body_or_headers
+ headers = body_or_headers.dup
@body = body
else
headers = {}
@body = body_or_headers
end