Skip to content

Commit

Permalink
chore(release): 2.1.1 [skip ci]
Browse files Browse the repository at this point in the history
## [2.1.1](v2.1.0...v2.1.1) (2020-11-24)

### Bug Fixes

* **api:** fix host in route link header ([0cf8940](0cf8940))
  • Loading branch information
semantic-release-bot committed Nov 24, 2020
1 parent 0cf8940 commit aeaa7f9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [2.1.1](https://github.com/ClearC2/headlamp/compare/v2.1.0...v2.1.1) (2020-11-24)


### Bug Fixes

* **api:** fix host in route link header ([0cf8940](https://github.com/ClearC2/headlamp/commit/0cf89404071444944c87107e024bf0f6cc792f69))

# [2.1.0](https://github.com/ClearC2/headlamp/compare/v2.0.3...v2.1.0) (2020-11-24)


Expand Down
2 changes: 1 addition & 1 deletion lib/api-route-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _default(app) {
res.set('X-Headlamp-Route-File', route.filename);
}

res.set('X-Headlamp-Route-Link', "".concat(req.headers.origin, "/_docs/request/").concat(route.id));
res.set('X-Headlamp-Route-Link', "http://".concat(req.headers.host, "/_docs/request/").concat(route.id));

if (respId !== undefined) {
var resp = responses[respId];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clearc2/headlamp",
"version": "2.1.0",
"version": "2.1.1",
"description": "Express API documenter",
"main": "lib/index.js",
"publishConfig": {
Expand Down

0 comments on commit aeaa7f9

Please sign in to comment.