Skip to content

Commit

Permalink
Merge pull request #157 from wonko/patch-1
Browse files Browse the repository at this point in the history
Pass the options as params to request
  • Loading branch information
gzussa authored Jun 5, 2019
2 parents 525eca8 + 506aefb commit eb4978c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/dogapi/common.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'cgi'
require 'net/https'
require 'pp'
require 'socket'
require 'uri'

Expand Down
2 changes: 1 addition & 1 deletion lib/dogapi/v1/hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class HostsService < Dogapi::APIService
API_VERSION = 'v1'

def search(options = {})
request(Net::HTTP::Get, "/api/#{API_VERSION}/hosts", nil, options, true)
request(Net::HTTP::Get, "/api/#{API_VERSION}/hosts", options, nil, true)
end

def totals
Expand Down

0 comments on commit eb4978c

Please sign in to comment.