Skip to content

Instantly share code, notes, and snippets.

@vitalyp
Last active March 13, 2020 19:45
Show Gist options
  • Save vitalyp/a2f3b640cf5d71e6dec1b0e4fda28ed3 to your computer and use it in GitHub Desktop.
Save vitalyp/a2f3b640cf5d71e6dec1b0e4fda28ed3 to your computer and use it in GitHub Desktop.
Set req cookies from resp
@authentication_cookie = response.env[:response_headers]["set-cookie"]
response = conn.get do |req|
req.headers ['cookie'] = @authentication_cookie
req.url, params
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment