Skip to content

Commit

Permalink
Add User-Agent to requests so we can get some visibility into usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvandersluis committed Apr 12, 2021
1 parent 6877907 commit 2b17807
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pexels/client/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def url

def headers
@headers = {
'Authorization' => api_key
'Authorization' => api_key,
'User-Agent' => "Pexels/Ruby (#{Pexels::VERSION})"
}.merge(Pexels.local_headers)
end

Expand Down

0 comments on commit 2b17807

Please sign in to comment.