sensu-plugins / sensu-plugin

A framework for writing Sensu plugins & handlers with Ruby.
http://sensuapp.org
MIT License
126 stars 117 forks source link

[handler] converting URI to string before making api request #155

Closed cwjohnston closed 7 years ago

cwjohnston commented 7 years ago

Description

In order to restore compatibility with Ruby 1.9, this change ensures the URI::HTTP object uri is converted to a string when passing as an argument to Net::HTTP.

Motivation and Context

Although we concede that Ruby 1.9 is way past EOL, sensu-plugin is expected to retain compatibility with Ruby 1.9 until sensu-plugin version 2.0 is released.

Closes #154

How Has This Been Tested?

Tested the change manually in REPL on Ruby 1.9.3-p551 and 2.3.1.

Types of changes

None.