Skip to content

Commit

Permalink
Fix for hostheader without setting url
Browse files Browse the repository at this point in the history
  • Loading branch information
renshordijk2 authored and majormoses committed Oct 2, 2018
1 parent 9ebf9f7 commit 4b4ca93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)

## [Unreleased]
### Fixed
- `check-nginx-status.rb`: Fixed usage of hostheader without setting url

## [2.2.2] - 2018-03-28
### Security
Expand Down
1 change: 1 addition & 0 deletions bin/check-nginx-status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def statutor
else
response = Net::HTTP.start(config[:hostname], config[:port]) do |connection|
request = Net::HTTP::Get.new("/#{config[:path]}")
request['Host'] = config[:hostheader] if config[:hostheader]
connection.request(request)
end
end
Expand Down

0 comments on commit 4b4ca93

Please sign in to comment.