Skip to content

Commit

Permalink
Merge branch 'master' of github.com:kartikk221/hyper-express
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikk221 committed Feb 14, 2023
2 parents d27f324 + 3f1c6c9 commit 34cd29d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/http/Response.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ class Response {
this.throw(new Error('HyperExpress: atomic(handler) -> handler must be a Javascript function'));

// Cork the provided handler
this.#raw_response.cork(handler);
if(!this.completed)
this.#raw_response.cork(handler);

return this;
}

Expand Down

0 comments on commit 34cd29d

Please sign in to comment.