close
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/wp-includes/class-wp-http.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function request( $url, $args = array() ) {

// WP allows passing in headers as a string, weirdly.
if ( ! is_array( $parsed_args['headers'] ) ) {
$processed_headers = WP_Http::processHeaders( $parsed_args['headers'] );
$processed_headers = self::processHeaders( $parsed_args['headers'] );
$parsed_args['headers'] = $processed_headers['headers'];
}

Expand Down Expand Up @@ -368,7 +368,7 @@ public function request( $url, $args = array() ) {

// If we've got cookies, use and convert them to WpOrg\Requests\Cookie.
if ( ! empty( $parsed_args['cookies'] ) ) {
$options['cookies'] = WP_Http::normalize_cookies( $parsed_args['cookies'] );
$options['cookies'] = self::normalize_cookies( $parsed_args['cookies'] );
}

// SSL certificate handling.
Expand Down Expand Up @@ -1076,7 +1076,7 @@ public static function handle_redirects( $url, $args, $response ) {
$redirect_location = array_pop( $redirect_location );
}

$redirect_location = WP_Http::make_absolute_url( $redirect_location, $url );
$redirect_location = self::make_absolute_url( $redirect_location, $url );

// POST requests should not POST to a redirected location.
if ( 'POST' === $args['method'] ) {
Expand Down
Loading