Skip to content

Commit 08bf139

Browse files
westonruterdmsnell
andcommitted
Eliminate trimming of header name
Co-authored-by: Dennis Snell <[email protected]>
1 parent 5db05ea commit 08bf139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ function wp_finalize_template_enhancement_output_buffer( string $output, int $ph
929929
$header_parts = explode( ':', strtolower( $header ), 2 );
930930
if (
931931
count( $header_parts ) === 2 &&
932-
'content-type' === trim( $header_parts[0] )
932+
'content-type' === $header_parts[0]
933933
) {
934934
$content_type = trim( strtok( $header_parts[1], ';' ) );
935935
$is_html_content_type = in_array( $content_type, $html_content_types, true );

0 commit comments

Comments
 (0)