Skip to content

Commit

Permalink
fix: set content-type header
Browse files Browse the repository at this point in the history
Fixes #442
  • Loading branch information
wkillerud committed Nov 14, 2024
1 parent 042a259 commit ef67251
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/podlet.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,9 +995,8 @@ export default class PodiumPodlet {
// set "incoming" on res.locals.podium
objobj.set('locals.podium', incoming, res);

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

res.sendHeaders = () => {
res.write('');
Expand Down

0 comments on commit ef67251

Please sign in to comment.