Skip to content

Commit

Permalink
adds X-Contentful-User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
floriank committed Jul 8, 2020
1 parent 6d7e868 commit 7fa67f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/contentful/request.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ defmodule Contentful.Request do

import Contentful.Misc, only: [fallback: 2]

@agent_name "Contentful Elixir SDK"

@agent_header [
"User-Agent": "Contentful Elixir SDK"
"User-Agent": @agent_name,
"X-Contentful-User-Agent": @agent_name
]

@accept_header [
Expand Down

0 comments on commit 7fa67f1

Please sign in to comment.