red-tux/zbxapi — pull request #22 by edtjones (2014-03-27 10:45:40+00:00)
Title: Check that custom headers isn't nil before setting

We hit an issue with Ruby 1.9.3 where @custom_headers was being overwritten by a nil hash, and the ZabbixAPI invocation was failing. Passing in :custom_headers => {} works, but it would be better to check that options[:custom_headers] isn't nil before setting it.