HTTP API: Fix a unit test failure found after [55210].

Follow-up to [55210].

See #54225.


git-svn-id: https://develop.svn.wordpress.org/trunk@55211 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2023-02-03 13:51:11 +00:00
parent 8fbe21a37a
commit 5c840d93bb
2 changed files with 3 additions and 3 deletions

View File

@ -512,7 +512,7 @@ function wp_install_maybe_enable_pretty_permalinks() {
* can block head requests.
*/
$response = wp_remote_get( $test_url, array( 'timeout' => 5 ) );
$x_pingback_header = wp_remote_retrieve_header( $response, 'X-Pingback' );
$x_pingback_header = wp_remote_retrieve_header( $response, 'x-pingback' );
$pretty_permalinks = $x_pingback_header && get_bloginfo( 'pingback_url' ) === $x_pingback_header;
if ( $pretty_permalinks ) {

View File

@ -271,8 +271,8 @@ class Tests_Functions_DoEnclose extends WP_UnitTestCase {
),
'ogg' => array(
'headers' => array(
'content-length' => 321,
'content-type' => 'audio/ogg',
'Content-Length' => 321,
'Content-Type' => 'audio/ogg',
),
),
);