lib/zabbixapi/client.rb in zabbixapi-2.4.2 vs lib/zabbixapi/client.rb in zabbixapi-2.4.3

- old
+ new

@@ -45,10 +45,10 @@ :params => body[:params], :id => id, :jsonrpc => '2.0' } - message[:auth] = @auth_hash unless body[:method] == 'apiinfo.version' + message[:auth] = @auth_hash unless (body[:method] == 'apiinfo.version' or body[:method] == 'user.login') JSON.generate(message) end def http_request(body)