From f93aac983a651e76b83aad78bfc79a8c3c5d49a8 Mon Sep 17 00:00:00 2001 From: Manuel Date: Sun, 14 Feb 2021 20:19:19 +0000 Subject: [PATCH] Set Content-Type of raw paste to plaintext --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index d0ae993..2179418 100644 --- a/server.js +++ b/server.js @@ -81,6 +81,7 @@ const utils = new HasteUtils(); app.get('/raw/:id', async (req, res) => { const key = req.params.id.split('.')[0]; const skipExpire = Boolean(config.documents[key]); + res.setHeader('content-type', 'text/plain'); return await documentHandler.handleGetRaw(key, res, skipExpire); });