Skip to content

Commit

Permalink
fix end()
Browse files Browse the repository at this point in the history
  • Loading branch information
shevernitskiy committed Oct 12, 2023
1 parent 3003363 commit d127a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/convenience/frameworks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const worktop: FrameworkAdapter = (req, res) => ({
const nhttp: FrameworkAdapter = (rev) => ({
update: rev.body,
header: rev.headers.get(SECRET_HEADER) || undefined,
end: () => rev.response.status(200),
end: () => rev.response.sendStatus(200),
respond: (json) => rev.response.status(200).send(json),
unauthorized: () => rev.response.status(401).send(WRONG_TOKEN_ERROR),
});

Check warning on line 350 in src/convenience/frameworks.ts

View check run for this annotation

Codecov / codecov/patch

src/convenience/frameworks.ts#L343-L350

Added lines #L343 - L350 were not covered by tests
Expand Down

0 comments on commit d127a44

Please sign in to comment.