Skip to content
Snippets Groups Projects

Issue #3455468: serve as plain/text

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -60,6 +60,7 @@ final class ApplePayVerificationController extends ControllerBase {
$file = $this->entityTypeManager->getStorage('file')->load($fileId);
$response = new CacheableResponse(file_get_contents($file->getFileUri()));
$response->headers->set('Content-Type', 'text/plain');
return $response;
}
Loading