From e4ca1e7e50cb7223e4af193eafe3523e8935b7d0 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Tue, 22 Jan 2019 21:46:26 +0200 Subject: [PATCH] typescript(translucid): hopefully... Signed-off-by: prescientmoon --- typescript/translucid/Translucid.js | 1 + typescript/translucid/Translucid.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 557784a..6ec9710 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -47,6 +47,7 @@ class Translucid { }); } decorated.push((prev) => { + res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); }); decorated[0](readResults); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 8d0a6a3..235737d 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -55,6 +55,7 @@ class Translucid { }); } decorated.push((prev:any):void => { + res.contentType(`${__dirname}/../../${filepath}`); res.send(prev); });