X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffile%2Fsrc%2FFileServiceProvider.php;fp=web%2Fcore%2Fmodules%2Ffile%2Fsrc%2FFileServiceProvider.php;h=a22750a197bc49d552787d17765601745ffcffce;hp=0000000000000000000000000000000000000000;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/file/src/FileServiceProvider.php b/web/core/modules/file/src/FileServiceProvider.php new file mode 100644 index 000000000..a22750a19 --- /dev/null +++ b/web/core/modules/file/src/FileServiceProvider.php @@ -0,0 +1,23 @@ +has('http_middleware.negotiation') && is_a($container->getDefinition('http_middleware.negotiation')->getClass(), NegotiationMiddleware::class, TRUE)) { + $container->getDefinition('http_middleware.negotiation')->addMethodCall('registerFormat', ['bin', ['application/octet-stream']]); + } + } + +}