We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8c557cb + 8fc5603 commit e9f5ea1Copy full SHA for e9f5ea1
src/response/TextResponse.ts
@@ -19,6 +19,8 @@ export class TextResponse<A> extends BufferResponse<A> {
19
public constructor(text: string, statusCode = 200, headers?: HeadersInit) {
20
super(statusCode, headers);
21
this.text = text;
22
+ if (!this.headers.has("content-type"))
23
+ this.headers.set("content-type", "text/plain");
24
}
25
26
public override readBuffer() {
0 commit comments