lib/scout/server_base.rb in scout-5.6.4 vs lib/scout/server_base.rb in scout-5.6.5.pre

- old
+ new

@@ -27,10 +27,10 @@ options.merge!(:client_version => Scout::VERSION) URI.join(@server, "/clients/CLIENT_KEY/#{url_name}.scout". gsub(/\bCLIENT_KEY\b/, @client_key). gsub(/\b[A-Z_]+\b/) { |k| options[k.downcase.to_sym] || k }, - "?roles=#{@roles}&fqdn=#{@fqdn}&tty=#{$stdin.tty? ? 'y' : 'n'}") + "?roles=#{@roles}&fqdn=#{URI.encode(@fqdn)}&tty=#{$stdin.tty? ? 'y' : 'n'}") end def post(url, error, body, headers = Hash.new, &response_handler) return unless url request(url, response_handler, error) do |connection|