Skip to content

Commit

Permalink
Update User-Agent string with CANONICAL_ORIGIN
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal committed Feb 26, 2024
1 parent db8fe6b commit ad6b3da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/dags/common/loader/provider_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@

# User-Agent header for APIs that require it
CONTACT_EMAIL = os.getenv("CONTACT_EMAIL")
UA_STRING = f"Openverse/0.1 (https://wordpress.org/openverse; {CONTACT_EMAIL})"
CANONICAL_ORIGIN = os.getenv("CANONICAL_ORIGIN", "https://openverse.org")
UA_STRING = f"Openverse/0.1 ({CANONICAL_ORIGIN}; {CONTACT_EMAIL})"


# Available Image Categories for API
Expand Down

0 comments on commit ad6b3da

Please sign in to comment.