Skip to content

Commit

Permalink
Merge pull request #18 from omc/v5-accept-json
Browse files Browse the repository at this point in the history
Provide an Accept header with all requests
  • Loading branch information
allizad authored Nov 10, 2016
2 parents 0d34bb9 + 2f28fae commit ee7e309
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/searchyll/indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def http_delete(path)
def http_request(klass, path)
req = klass.new(path)
req.content_type = 'application/json'
req['Accept'] = 'application/json'
req.basic_auth(uri.user, uri.password)
req
end
Expand Down

0 comments on commit ee7e309

Please sign in to comment.