Skip to content

Commit ef67251

Browse files
committed
fix: set content-type header
Fixes #442
1 parent 042a259 commit ef67251

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/podlet.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -995,9 +995,8 @@ export default class PodiumPodlet {
995995
// set "incoming" on res.locals.podium
996996
objobj.set('locals.podium', incoming, res);
997997

998-
if (res.header) {
999-
res.header('podlet-version', this.version);
1000-
}
998+
res.header('podlet-version', this.version);
999+
res.header('content-type', 'text/html');
10011000

10021001
res.sendHeaders = () => {
10031002
res.write('');

0 commit comments

Comments
 (0)