Skip to content

Commit

Permalink
fix: response.end() don't support numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Deivu committed Dec 22, 2024
1 parent b0ecae7 commit c09ab6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/concurrency/ConcurrencyServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class ConcurrencyServer {
if (request.method === 'POST' && request.url.includes('/concurrency/check')) {
response.statusCode = 200;
response.statusMessage = 'OK';
return void response.end(now);
return void response.end(now.toString());
}

response.statusCode = 404;
Expand Down

0 comments on commit c09ab6f

Please sign in to comment.