提交的内容
This commit is contained in:
7
vendor/rmccue/requests/src/Cookie/Jar.php
vendored
Executable file → Normal file
7
vendor/rmccue/requests/src/Cookie/Jar.php
vendored
Executable file → Normal file
@ -49,7 +49,8 @@ class Jar implements ArrayAccess, IteratorAggregate {
|
||||
/**
|
||||
* Normalise cookie data into a \WpOrg\Requests\Cookie
|
||||
*
|
||||
* @param string|\WpOrg\Requests\Cookie $cookie
|
||||
* @param string|\WpOrg\Requests\Cookie $cookie Cookie header value, possibly pre-parsed (object).
|
||||
* @param string $key Optional. The name for this cookie.
|
||||
* @return \WpOrg\Requests\Cookie
|
||||
*/
|
||||
public function normalize_cookie($cookie, $key = '') {
|
||||
@ -106,7 +107,7 @@ class Jar implements ArrayAccess, IteratorAggregate {
|
||||
/**
|
||||
* Unset the given header
|
||||
*
|
||||
* @param string $offset
|
||||
* @param string $offset The key for the item to unset.
|
||||
*/
|
||||
#[ReturnTypeWillChange]
|
||||
public function offsetUnset($offset) {
|
||||
@ -171,7 +172,7 @@ class Jar implements ArrayAccess, IteratorAggregate {
|
||||
/**
|
||||
* Parse all cookies from a response and attach them to the response
|
||||
*
|
||||
* @param \WpOrg\Requests\Response $response
|
||||
* @param \WpOrg\Requests\Response $response Response as received.
|
||||
*/
|
||||
public function before_redirect_check(Response $response) {
|
||||
$url = $response->url;
|
||||
|
||||
Reference in New Issue
Block a user