Skip to content

Commit

Permalink
include content-type in devserver response
Browse files Browse the repository at this point in the history
  • Loading branch information
jjallaire committed Apr 5, 2022
1 parent 2bc1cc3 commit 4ca2509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/http-devserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function httpDevServer(
return Promise.resolve(undefined);
}
},
injectClient: (file: Uint8Array, inputFile?: string) => {
injectClient: (file: Uint8Array, inputFile?: string): FileResponse => {
const scriptContents = new TextEncoder().encode(
"\n" + devServerClientScript(port, inputFile, isPresentation),
);
Expand All @@ -103,7 +103,7 @@ export function httpDevServer(
fileWithScript.set(file);
fileWithScript.set(scriptContents, file.length);
return {
contenType: kTextHtml,
contentType: kTextHtml,
body: fileWithScript,
};
},
Expand Down

0 comments on commit 4ca2509

Please sign in to comment.