We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4062fb commit 07abd76Copy full SHA for 07abd76
system/Debug/Toolbar.php
@@ -562,7 +562,9 @@ protected function hasNativeHeaderConflict(): bool
562
// Native Header Inspection
563
foreach (headers_list() as $header) {
564
// Content-Type is set but is NOT text/html
565
- if (str_starts_with(strtolower($header), strtolower('Content-Type:')) && ! str_contains(strtolower($header), strtolower('text/html'))) {
+ $lowercaseHeader = strtolower($header);
566
+
567
+ if (str_starts_with($lowercaseHeader, 'content-type:') && ! str_contains($lowercaseHeader, 'text/html')) {
568
return true;
569
}
570
// File is being downloaded (Attachment)
0 commit comments