Skip to content

Commit

Permalink
Merge pull request #7 from orbit-love/agent
Browse files Browse the repository at this point in the history
User Agent
  • Loading branch information
hummusonrails authored May 11, 2021
2 parents a6eb007 + cb981fd commit ccb2218
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/linkedin_orbit.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require "zeitwerk"
require_relative "linkedin_orbit/version"

module LinkedinOrbit
loader = Zeitwerk::Loader.new
Expand Down
1 change: 1 addition & 0 deletions lib/linkedin_orbit/interactions/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def after_initialize!
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request["Authorization"] = "Bearer #{@orbit_api_key}"
request["User-Agent"] = "community-ruby-linkedin-orbit/#{LinkedinOrbit::VERSION}"

request.body = construct_body.to_json

Expand Down
2 changes: 1 addition & 1 deletion lib/linkedin_orbit/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module LinkedinOrbit
VERSION = "0.1.1"
VERSION = "0.1.2"
end

0 comments on commit ccb2218

Please sign in to comment.