Skip to content

Commit

Permalink
Fixing passing undefined as arg to respond()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Dec 5, 2017
1 parent d8f5b19 commit 72240d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tenso.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class Tenso extends HTTPMethods {
return this;
}

respond (req, res, arg, status = 200, headers = {}) {
respond (req, res, arg = "", status = 200, headers = {}) {
return new Promise((resolve, reject) => {
if (res.headersSent === false) {
let output;
Expand Down
2 changes: 1 addition & 1 deletion 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": "Tensō is an elastic REST API gateway for node.js",
"version": "6.2.2",
"version": "6.2.3",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit 72240d3

Please sign in to comment.