Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Nov 26, 2022
1 parent a1c53ca commit b0de4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ export function send (event: H3Event, data?: any, type?: string): Promise<void>
export function sendEmpty (event: H3Event, code: number = 204) {
// Following https://www.rfc-editor.org/rfc/rfc7230#section-3.3.2, 204 responses MUST NOT have a Content-Length header field
if (code !== 204) {
event.node.res.setHeader('Content-Length', '0')
event.node.res.setHeader("Content-Length", "0");
}
event.node.res.statusCode = code
event.node.res.end()
event.node.res.statusCode = code;
event.node.res.end();
}

export function defaultContentType (event: H3Event, type?: string) {
Expand Down

0 comments on commit b0de4bf

Please sign in to comment.