lib/deputy.rb in deputy-0.1.45 vs lib/deputy.rb in deputy-0.1.46

- old
+ new

@@ -122,10 +122,10 @@ def self.send_report(group, value, options = {}) raise "separate #{group} with a ." unless group.split('.',2).size == 2 host = options[:host] || Socket.gethostname - get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}&hostname=#{host}" + get "/notify?group=#{CGI.escape group}&value=#{CGI.escape value.to_s}&hostname=#{host}#{'&forced_host=true' if options[:host]}" end def self.get(path, options = {}) url = "#{sheriff_url}#{path}" url = "http://#{url}" unless url =~ %r{://} \ No newline at end of file