"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/HttpClient/Response/NativeResponse.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

NativeResponse.php  (symfony-4.4.14):NativeResponse.php  (symfony-4.4.15)
skipping to change at line 138 skipping to change at line 138
$this->info['debug'] .= "* Establish HTTP proxy tunnel to {$ proxy}\n"; $this->info['debug'] .= "* Establish HTTP proxy tunnel to {$ proxy}\n";
$this->info['request_header'] = $url; $this->info['request_header'] = $url;
} else { } else {
$this->info['debug'] .= "* Trying {$this->info['primary_ip ']}...\n"; $this->info['debug'] .= "* Trying {$this->info['primary_ip ']}...\n";
$this->info['request_header'] = $this->info['url']['path'].$ this->info['url']['query']; $this->info['request_header'] = $this->info['url']['path'].$ this->info['url']['query'];
} }
$this->info['request_header'] = sprintf("> %s %s HTTP/%s \r\n", $context['http']['method'], $this->info['request_header'], $context['http']['pro tocol_version']); $this->info['request_header'] = sprintf("> %s %s HTTP/%s \r\n", $context['http']['method'], $this->info['request_header'], $context['http']['pro tocol_version']);
$this->info['request_header'] .= implode("\r\n", $context['http' ]['header'])."\r\n\r\n"; $this->info['request_header'] .= implode("\r\n", $context['http' ]['header'])."\r\n\r\n";
if (\array_key_exists('peer_name', $context['ssl']) && null ===
$context['ssl']['peer_name']) {
unset($context['ssl']['peer_name']);
$this->context = stream_context_create([], ['options' => $co
ntext] + stream_context_get_params($this->context));
}
// Send request and follow redirects when needed // Send request and follow redirects when needed
$this->handle = $h = fopen($url, 'r', false, $this->context); $this->handle = $h = fopen($url, 'r', false, $this->context);
self::addResponseHeaders($http_response_header, $this->info, $th is->headers, $this->info['debug']); self::addResponseHeaders($http_response_header, $this->info, $th is->headers, $this->info['debug']);
$url = ($this->resolveRedirect)($this->multi, $this->headers['lo cation'][0] ?? null, $this->context); $url = ($this->resolveRedirect)($this->multi, $this->headers['lo cation'][0] ?? null, $this->context);
if (null === $url) { if (null === $url) {
break; break;
} }
$this->logger && $this->logger->info(sprintf('Redirecting: "%s % s"', $this->info['http_code'], $url ?? $this->url)); $this->logger && $this->logger->info(sprintf('Redirecting: "%s % s"', $this->info['http_code'], $url ?? $this->url));
 End of changes. 1 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)