lib/httpi/adapter/excon.rb in httpi-2.4.2 vs lib/httpi/adapter/excon.rb in httpi-2.4.3

- old
+ new

@@ -75,10 +75,14 @@ opts end def respond_with(response) - Response.new response.status, response.headers, response.body + headers = response.headers.dup + if (cookies = response.data[:cookies]) && !cookies.empty? + headers["Set-Cookie"] = cookies + end + Response.new response.status, headers, response.body end end end end