Skip to content

Commit cba85c6

Browse files
authored
Merge pull request #100 from EasyPost/fix_user_agent
fix user-agent inadvertently including Authorization
2 parents 543aee8 + 741735e commit cba85c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/easypost.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def self.make_request(method, path, api_key=nil, body=nil)
122122
end
123123

124124
request["Content-Type"] = "application/json"
125-
request["User-Agent"] = "EasyPost/v2 RubyClient/#{VERSION} Ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}",
125+
request["User-Agent"] = "EasyPost/v2 RubyClient/#{VERSION} Ruby/#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
126126
if api_key = api_key || @api_key
127127
request["Authorization"] = "Basic #{Base64.strict_encode64("#{api_key}:")}"
128128
end

0 commit comments

Comments
 (0)