diff options
author | nick <huggablesquare@gmail.com> | 2021-06-17 03:13:20 +0000 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-17 09:31:28 +0000 |
commit | fe8bc88e27a1c56678218938f5431f0db976875c (patch) | |
tree | ead924024e69ad537d6a6518310529b45ecb6016 | |
parent | Applied linter fixes. (diff) | |
download | ferdium-server-fe8bc88e27a1c56678218938f5431f0db976875c.tar.gz ferdium-server-fe8bc88e27a1c56678218938f5431f0db976875c.tar.zst ferdium-server-fe8bc88e27a1c56678218938f5431f0db976875c.zip |
Send correct Content-Type header for custom icon
-rw-r--r-- | app/Controllers/Http/ServiceController.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Controllers/Http/ServiceController.js b/app/Controllers/Http/ServiceController.js index 05d093b..4aa611c 100644 --- a/app/Controllers/Http/ServiceController.js +++ b/app/Controllers/Http/ServiceController.js | |||
@@ -142,6 +142,7 @@ class ServiceController { | |||
142 | iconId = uuid() + uuid(); | 142 | iconId = uuid() + uuid(); |
143 | // eslint-disable-next-line no-await-in-loop | 143 | // eslint-disable-next-line no-await-in-loop |
144 | } while (await fs.exists(path.join(Helpers.tmpPath('uploads'), iconId))); | 144 | } while (await fs.exists(path.join(Helpers.tmpPath('uploads'), iconId))); |
145 | iconId = `${iconId}.${icon.extname}`; | ||
145 | 146 | ||
146 | await icon.move(Helpers.tmpPath('uploads'), { | 147 | await icon.move(Helpers.tmpPath('uploads'), { |
147 | name: iconId, | 148 | name: iconId, |