Skip to content

Commit

Permalink
fix: change to single quotes and using fetch env
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfigueira committed May 28, 2024
1 parent 86b25d1 commit a318f3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chroma/api_operations/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def execute_request(method, url, params = {}, options = {})
request.content_type = "application/json"
request.body = params.to_json if params.size > 0
request.basic_auth(uri.user, uri.password) if !uri.user.nil?
request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV["CHROMA_SERVER_AUTHN_CREDENTIALS"]
request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil)
request
end
end
Expand Down

0 comments on commit a318f3d

Please sign in to comment.