Skip to content

Commit

Permalink
fix: add authentication for .net Product Opener when fetching products
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 committed Mar 12, 2023
1 parent d79bbc2 commit 18cbb20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robotoff/off.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_product(
# See /~https://github.com/openfoodfacts/openfoodfacts-server/issues/1607
url += "?fields={}".format(",".join(fields))

r = http_session.get(url, timeout=timeout)
r = http_session.get(url, timeout=timeout, auth=settings._off_request_auth)

if r.status_code != 200:
return None
Expand Down

0 comments on commit 18cbb20

Please sign in to comment.