Skip to content

Commit

Permalink
Adding missing call to headers() from onsend handler, updating CH…
Browse files Browse the repository at this point in the history
…ANGELOG.md, version bump to release
  • Loading branch information
avoidwork committed Oct 7, 2021
1 parent d37972f commit 8881ce6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [16.2.1](https://github.com/avoidwork/tenso/compare/16.2.0...16.2.1)

#### [16.2.0](https://github.com/avoidwork/tenso/compare/16.1.0...16.2.0)

> 7 October 2021
- Updating CHANGELOG.md [`d37972f`](https://github.com/avoidwork/tenso/commit/d37972fc6a01eaed04fa444a2a972d5366d99dae)
- Decorating `req.private`, updating README.md [`dcb5c51`](https://github.com/avoidwork/tenso/commit/dcb5c51cd4a7bf9b9bd97016cfe9baa5beb7572f)
- Updating lock file [`e4e392e`](https://github.com/avoidwork/tenso/commit/e4e392edf1d656f5cc51d2b8f0fe229051b73866)

Expand Down
1 change: 1 addition & 0 deletions lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ function bootstrap (obj) {
// Setting up router
obj.router.addListener("connect", obj.connect.bind(obj));
obj.router.onsend = (req, res, body = "", status = 200, headers) => {
obj.headers(req, res);
res.statusCode = status;

if (status !== 204 && status !== 304 && (body === null || typeof body.on !== "function")) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tenso is an HTTP REST API framework",
"version": "16.2.0",
"version": "16.2.1",
"homepage": "https://github.com/avoidwork/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit 8881ce6

Please sign in to comment.