Skip to content

Commit d24e5b7

Browse files
committed
1 parent 6ec684a commit d24e5b7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/index.mts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ application.server?.push({
653653
method: "GET",
654654
pathname: "/",
655655
handler: (request, response) => {
656-
response.end(
656+
response.send(
657657
application.layout({
658658
request,
659659
response,
@@ -850,7 +850,7 @@ application.server?.push({
850850
`,
851851
)!;
852852
if (request.headers.accept === "application/json")
853-
response.setHeader("Content-Type", "application/json").end(
853+
response.setHeader("Content-Type", "application/json").send(
854854
JSON.stringify({
855855
feedId: feed.publicId,
856856
email: `${feed.publicId}@${application.configuration.hostname}`,
@@ -906,7 +906,7 @@ application.server?.push({
906906
response,
907907
) => {
908908
if (request.state.feed === undefined) return;
909-
response.end(
909+
response.send(
910910
application.layout({
911911
request,
912912
response,
@@ -1235,7 +1235,7 @@ application.server?.push({
12351235
)!.count > 10
12361236
) {
12371237
response.statusCode = 429;
1238-
response.end(
1238+
response.send(
12391239
application.layout({
12401240
request,
12411241
response,
@@ -1275,7 +1275,7 @@ application.server?.push({
12751275
);
12761276
response
12771277
.setHeader("Content-Type", "application/atom+xml; charset=utf-8")
1278-
.end(
1278+
.send(
12791279
application.partials.feed({ feed: request.state.feed, feedEntries }),
12801280
);
12811281
},
@@ -1318,7 +1318,7 @@ application.server?.push({
13181318
"default-src 'self'; img-src *; style-src 'self' 'unsafe-inline'; frame-src 'none'; object-src 'none'; form-action 'self'; frame-ancestors 'none'",
13191319
)
13201320
.setHeader("Cross-Origin-Embedder-Policy", "unsafe-none")
1321-
.end(feedEntry.content);
1321+
.send(feedEntry.content);
13221322
},
13231323
});
13241324
application.server?.push({
@@ -1415,7 +1415,7 @@ application.server?.push({
14151415
`,
14161416
);
14171417
response.statusCode = 202;
1418-
response.end();
1418+
response.send();
14191419
},
14201420
});
14211421
if (application.commandLineArguments.values.type === "backgroundJob")
@@ -1521,7 +1521,7 @@ if (application.commandLineArguments.values.type === "backgroundJob")
15211521
application.server?.push({
15221522
handler: (request, response) => {
15231523
response.statusCode = 404;
1524-
response.end(
1524+
response.send(
15251525
application.layout({
15261526
request,
15271527
response,
@@ -1543,7 +1543,7 @@ application.server?.push({
15431543
application.server?.push({
15441544
error: true,
15451545
handler: (request, response) => {
1546-
response.end(
1546+
response.send(
15471547
application.layout({
15481548
request,
15491549
response,

0 commit comments

Comments
 (0)