Last active
March 13, 2020 19:45
-
-
Save vitalyp/a2f3b640cf5d71e6dec1b0e4fda28ed3 to your computer and use it in GitHub Desktop.
Set req cookies from resp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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