Skip to content

Commit

Permalink
fix: add custom headers when performing requests with the API
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Dec 1, 2023
1 parent d790389 commit 163b33b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openfoodfacts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
_orjson_available = False

http_session = requests.Session()
http_session.headers.update({"User-Agent": "openfoodfacts-python"})


class URLBuilder:
Expand Down

0 comments on commit 163b33b

Please sign in to comment.