diff options
author | Jacob Neplokh <me@jacobneplokh.com> | 2020-09-05 11:44:01 -0700 |
---|---|---|
committer | Jacob Neplokh <me@jacobneplokh.com> | 2020-09-05 11:46:25 -0700 |
commit | e8a4feb1c646f39ca83c72ae493095c3d37b9eb6 (patch) | |
tree | 1f2a21c8b07d01a4e680c28ca664d44ff0433eea /build | |
parent | 62ab3eb70016f57ced2dfccc7c095c3219c0cbf4 (diff) | |
download | nextcloud-server-e8a4feb1c646f39ca83c72ae493095c3d37b9eb6.tar.gz nextcloud-server-e8a4feb1c646f39ca83c72ae493095c3d37b9eb6.zip |
Change Content-Disposition Header
- Make ALLOWED_CONTENT_TYPES public in order to use
- Add $fileName variable which uses "$node->getName()" to get the proper file name and "$file->getMimeType()" along with the ALLOWED_CONTENT_TYPES array in PhotoCache.php to get the proper file extension
- Make "$fileName" the name of the file in the Content-Disposition header when downloading a Contact's photo
- Add filename to the CardDAV integration image export test header
- Change headers in ImageExportPluginTest to reflect changes
Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/carddav.feature | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/integration/features/carddav.feature b/build/integration/features/carddav.feature index 57fd8cd7da4..16c165b6bab 100644 --- a/build/integration/features/carddav.feature +++ b/build/integration/features/carddav.feature @@ -55,7 +55,7 @@ Feature: carddav Given "admin" uploads the contact "bjoern.vcf" to the addressbook "MyAddressbook" When Exporting the picture of contact "bjoern.vcf" from addressbook "MyAddressbook" as user "admin" Then The following HTTP headers should be set - |Content-Disposition|attachment| + |Content-Disposition|attachment; filename=bjoern.vcf.jpg| |Content-Type|image/jpeg| |Content-Security-Policy|default-src 'none';| |X-Content-Type-Options |nosniff| |