Skip to content

Commit

Permalink
Rushed the header rewrite a little
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Feb 7, 2017
1 parent 9794b25 commit cdc4bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/tenso.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class Tenso {
}

if (req.protect && !regex.private.test(ref[0]["cache-control"])) {
ref[0]["cache-control"].replace(/(private|public)(,\s)?/g, "");
ref[0]["cache-control"] = ref[0]["cache-control"].replace(/(private|public)(,\s)?/g, "");
ref[0]["cache-control"] = "private" + (ref[0]["cache-control"].length > 0 ? ", " : "") + (ref[0]["cache-control"] || "");
}

Expand Down
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": "4.3.20",
"version": "4.3.21",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit cdc4bf7

Please sign in to comment.