summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-01-20 09:13:25 +0000
committerGreg Roach <greg@subaqua.co.uk>2021-01-20 09:13:33 +0000
commita0e7c4295c1f0b23b4dae10740838cc05665866f (patch)
tree4e4f1587dbfca52a1da78122f6e4758a9c578efc /app
parentba7c3e26ff663c2e583d184a239141932e62a3f8 (diff)
downloadwebtrees-a0e7c4295c1f0b23b4dae10740838cc05665866f.tar.gz
webtrees-a0e7c4295c1f0b23b4dae10740838cc05665866f.tar.bz2
webtrees-a0e7c4295c1f0b23b4dae10740838cc05665866f.zip
Use consistent upper/lower case in charset header
Diffstat (limited to 'app')
-rw-r--r--app/Helpers/functions.php2
-rw-r--r--app/Http/Controllers/Admin/LocationController.php2
-rw-r--r--app/Http/RequestHandlers/PendingChangesLogDownload.php2
-rw-r--r--app/Http/RequestHandlers/SiteLogsDownload.php2
4 files changed, 4 insertions, 4 deletions
diff --git a/app/Helpers/functions.php b/app/Helpers/functions.php
index 0914b4040a..e25368c53d 100644
--- a/app/Helpers/functions.php
+++ b/app/Helpers/functions.php
@@ -122,7 +122,7 @@ function response($content = '', $code = StatusCodeInterface::STATUS_OK, $header
if ($headers === []) {
if (is_string($content)) {
$headers = [
- 'Content-Type' => 'text/html; charset=utf-8',
+ 'Content-Type' => 'text/html; charset=UTF-8',
'Content-Length' => (string) strlen($content),
];
} else {
diff --git a/app/Http/Controllers/Admin/LocationController.php b/app/Http/Controllers/Admin/LocationController.php
index 8f88f1c16b..955880924f 100644
--- a/app/Http/Controllers/Admin/LocationController.php
+++ b/app/Http/Controllers/Admin/LocationController.php
@@ -390,7 +390,7 @@ class LocationController extends AbstractAdminController
$filename = addcslashes($filename, '"');
return response(stream_get_contents($resource))
- ->withHeader('Content-Type', 'text/csv; charset=utf-8')
+ ->withHeader('Content-Type', 'text/csv; charset=UTF-8')
->withHeader('Content-Disposition', 'attachment; filename="' . $filename . '"');
}
diff --git a/app/Http/RequestHandlers/PendingChangesLogDownload.php b/app/Http/RequestHandlers/PendingChangesLogDownload.php
index a78e0eb7a9..10ac11362c 100644
--- a/app/Http/RequestHandlers/PendingChangesLogDownload.php
+++ b/app/Http/RequestHandlers/PendingChangesLogDownload.php
@@ -76,7 +76,7 @@ class PendingChangesLogDownload implements RequestHandlerInterface
->implode("\n");
return response($content, StatusCodeInterface::STATUS_OK, [
- 'Content-Type' => 'text/csv; charset=utf-8',
+ 'Content-Type' => 'text/csv; charset=UTF-8',
'Content-Disposition' => 'attachment; filename="changes.csv"',
]);
}
diff --git a/app/Http/RequestHandlers/SiteLogsDownload.php b/app/Http/RequestHandlers/SiteLogsDownload.php
index 60df4f75c4..e235b923de 100644
--- a/app/Http/RequestHandlers/SiteLogsDownload.php
+++ b/app/Http/RequestHandlers/SiteLogsDownload.php
@@ -68,7 +68,7 @@ class SiteLogsDownload implements RequestHandlerInterface
->implode('');
return response($content, StatusCodeInterface::STATUS_OK, [
- 'Content-Type' => 'text/csv; charset=utf-8',
+ 'Content-Type' => 'text/csv; charset=UTF-8',
'Content-Disposition' => 'attachment; filename="webtrees-logs.csv"',
]);
}