summaryrefslogtreecommitdiff
path: root/app/Http/RequestHandlers/ExportGedcomClient.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-04-05 16:01:59 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-04-05 16:01:59 +0100
commit6172e7f6cb6d9b42e9feef9b728f7561b0d70dc9 (patch)
tree931a4a533937480e53e0198679e362c845bf65c3 /app/Http/RequestHandlers/ExportGedcomClient.php
parent6c21f8bee87860f3207f654266c478a05acfbcba (diff)
downloadwebtrees-6172e7f6cb6d9b42e9feef9b728f7561b0d70dc9.tar.gz
webtrees-6172e7f6cb6d9b42e9feef9b728f7561b0d70dc9.tar.bz2
webtrees-6172e7f6cb6d9b42e9feef9b728f7561b0d70dc9.zip
Upper/lower case mismatch causes wrong content-type header for CSV download
Diffstat (limited to 'app/Http/RequestHandlers/ExportGedcomClient.php')
-rw-r--r--app/Http/RequestHandlers/ExportGedcomClient.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Http/RequestHandlers/ExportGedcomClient.php b/app/Http/RequestHandlers/ExportGedcomClient.php
index e7897dfa93..79b870b4f0 100644
--- a/app/Http/RequestHandlers/ExportGedcomClient.php
+++ b/app/Http/RequestHandlers/ExportGedcomClient.php
@@ -150,8 +150,8 @@ class ExportGedcomClient implements RequestHandlerInterface
return $this->response_factory->createResponse()
->withBody($stream)
- ->withHeader('Content-Type', 'application/zip')
- ->withHeader('Content-Disposition', 'attachment; filename="' . $filename . '"');
+ ->withHeader('content-type', 'application/zip')
+ ->withHeader('content-disposition', 'attachment; filename="' . $filename . '"');
}
$resource = $this->gedcom_export_service->export($tree, true, $encoding, $access_level, $media_path);
@@ -159,7 +159,7 @@ class ExportGedcomClient implements RequestHandlerInterface
return $this->response_factory->createResponse()
->withBody($stream)
- ->withHeader('Content-Type', 'text/x-gedcom; charset=' . UTF8::NAME)
- ->withHeader('Content-Disposition', 'attachment; filename="' . addcslashes($download_filename, '"') . '"');
+ ->withHeader('content-type', 'text/x-gedcom; charset=' . UTF8::NAME)
+ ->withHeader('content-disposition', 'attachment; filename="' . addcslashes($download_filename, '"') . '"');
}
}