// Note that we are pushing to the front of the list as this
// would be an earlier response than what is currently present
// in the history header.
$historyHeader = $response->getHeader(self::HISTORY_HEADER);
$statusHeader = $response->getHeader(self::STATUS_HISTORY_HEADER);
\array_unshift($historyHeader, $uri);
\array_unshift($statusHeader, (string) $statusCode);
return $response->withHeader(self::HISTORY_HEADER, $historyHeader)->withHeader(self::STATUS_HISTORY_HEADER, $statusHeader);
});
}
/**
* Check for too many redirects.
*
* @throws TooManyRedirectsException Too many redirects.
*/
private function guardMax(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response, array &$options) : void
{
$current = $options['__redirect_count'] ?? 0;
$options['__redirect_count'] = $current + 1;
$max = $options['allow_redirects']['max'];
if ($options['__redirect_count'] > $max) {
throw new \YoastSEO_Vendor\GuzzleHttp\Exception\TooManyRedirectsException("Will not follow more than {$max} redirects", $request, $response);
}
}
public function modifyRequest(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, array $options, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response) : \YoastSEO_Vendor\Psr\Http\Message\RequestInterface
{
// Request modifications to apply.
$modify = [];
$protocols = $options['allow_redirects']['protocols'];
// Use a GET request if this is an entity enclosing request and we are
// not forcing RFC compliance, but rather emulating what all browsers
// would do.
$statusCode = $response->getStatusCode();
if ($statusCode == 303 || $statusCode <= 302 && !$options['allow_redirects']['strict']) {
$safeMethods = ['GET', 'HEAD', 'OPTIONS'];
$requestMethod = $request->getMethod();
$modify['method'] = \in_array($requestMethod, $safeMethods) ? $requestMethod : 'GET';
$modify['body'] = '';
}
$uri = self::redirectUri($request, $response, $protocols);
if (isset($options['idn_conversion']) && $options['idn_conversion'] !== \false) {
$idnOptions = $options['idn_conversion'] === \true ? \IDNA_DEFAULT : $options['idn_conversion'];
$uri = \YoastSEO_Vendor\GuzzleHttp\Utils::idnUriConvert($uri, $idnOptions);
}
$modify['uri'] = $uri;
\YoastSEO_Vendor\GuzzleHttp\Psr7\Message::rewindBody($request);
// Add the Referer header if it is told to do so and only
// add the header if we are not redirecting from https to http.
if ($options['allow_redirects']['referer'] && $modify['uri']->getScheme() === $request->getUri()->getScheme()) {
$uri = $request->getUri()->withUserInfo('');
$modify['set_headers']['Referer'] = (string) $uri;
} else {
$modify['remove_headers'][] = 'Referer';
}
// Remove Authorization and Cookie headers if URI is cross-origin.
if (\YoastSEO_Vendor\GuzzleHttp\Psr7\UriComparator::isCrossOrigin($request->getUri(), $modify['uri'])) {
$modify['remove_headers'][] = 'Authorization';
$modify['remove_headers'][] = 'Cookie';
}
return \YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::modifyRequest($request, $modify);
}
/**
* Set the appropriate URL on the request based on the location header.
*/
private static function redirectUri(\YoastSEO_Vendor\Psr\Http\Message\RequestInterface $request, \YoastSEO_Vendor\Psr\Http\Message\ResponseInterface $response, array $protocols) : \YoastSEO_Vendor\Psr\Http\Message\UriInterface
{
$location = \YoastSEO_Vendor\GuzzleHttp\Psr7\UriResolver::resolve($request->getUri(), new \YoastSEO_Vendor\GuzzleHttp\Psr7\Uri($response->getHeaderLine('Location')));
// Ensure that the redirect URI is allowed based on the protocols.
if (!\in_array($location->getScheme(), $protocols)) {
throw new \YoastSEO_Vendor\GuzzleHttp\Exception\BadResponseException(\sprintf('Redirect URI, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response);
}
return $location;
}
}
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/francamentequerida.com.br/web/wp-content/plugins/wordpress-seo/vendor_prefixed/guzzlehttp/guzzle/src/RedirectMiddleware.php:1) in /var/www/html/francamentequerida.com.br/web/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":3304,"date":"2018-12-07T02:19:08","date_gmt":"2018-12-07T02:19:08","guid":{"rendered":"http:\/\/francamentequerida.com.br\/?p=3304"},"modified":"2022-02-21T02:51:55","modified_gmt":"2022-02-21T02:51:55","slug":"tempo-compartilhado-critica-netflix","status":"publish","type":"post","link":"http:\/\/francamentequerida.com.br\/tempo-compartilhado-critica-netflix\/","title":{"rendered":"Tempo Compartilhado, um filme enigm\u00e1tico sobre f\u00e9rias estranhas"},"content":{"rendered":"
E se as suas t\u00e3o cuidadosamente planejadas f\u00e9rias em fam\u00edlia acabassem virando um mart\u00edrio por conta de imprevistos e lugares abarrotados de turistas? J\u00e1 pensou se essas f\u00e9rias frustradas se transformassem num filme que mistura com\u00e9dia, suspense e elementos de surrealismo e horror? Esse filme existe, est\u00e1 dispon\u00edvel na Netflix e se chama <\/span>Tempo Compartilhado<\/i><\/b>. <\/span><\/p>\n Dirigido por Sebasti\u00e1n Hoffman, o longa ganhou o pr\u00eamio de Melhor Roteiro no Festival de Sundance e tem marcado presen\u00e7a nas listas de melhores filmes mexicanos de 2018, ao lado de filmes como Museu<\/a> e Roma<\/a>. <\/span><\/p>\n