Skip to content

Commit

Permalink
the value of the content-type header will always be a string, but for…
Browse files Browse the repository at this point in the history
… TypeScript's sake make sure
  • Loading branch information
pmcelhaney committed Sep 4, 2023
1 parent 81fa6eb commit 2155064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/dispatcher.ts
Expand Up @@ -162,7 +162,9 @@ export class Dispatcher {

return {
...response,
contentType: response.headers?.["content-type"] ?? "unknown/unknown",

contentType:
response.headers?.["content-type"]?.toString() ?? "unknown/unknown",
};
}

Expand Down

0 comments on commit 2155064

Please sign in to comment.