Requests_Cookie_Jar::before_redirect_check()
最后更新于:2021-11-26 01:44:19
Requests_Cookie_Jar::before_redirect_check($return)Parse all cookies from a response and attach them to the response
源文件
文件: gc-includes/Requests/Cookie/Jar.php
public function before_redirect_check(Requests_Response $return) {
$url = $return->url;
if (!$url instanceof Requests_IRI) {
$url = new Requests_IRI($url);
}
$cookies = Requests_Cookie::parse_from_headers($return->headers, $url);
$this->cookies = array_merge($this->cookies, $cookies);
$return->cookies = $this;
}