Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from dmathieu/string_port
Browse files Browse the repository at this point in the history
Force the port to be an integer
  • Loading branch information
matiaskorhonen committed Apr 19, 2013
2 parents d460968 + b59a542 commit 69b78d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/monit/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def initialize(options = {})

# Construct the URL
def url
url_params = { :host => @host, :port => @port, :path => "/_status", :query => "format=xml" }
url_params = { :host => @host, :port => @port.to_i, :path => "/_status", :query => "format=xml" }
@ssl ? URI::HTTPS.build(url_params) : URI::HTTP.build(url_params)
end

Expand Down

0 comments on commit 69b78d0

Please sign in to comment.