Skip to content

Commit

Permalink
Add user-agent header for rawpixel (#3679)
Browse files Browse the repository at this point in the history
  • Loading branch information
stacimc authored Jan 19, 2024
1 parent 3a08b82 commit 487142a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions catalog/dags/providers/provider_api_scripts/rawpixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class RawpixelDataIngester(ProviderDataIngester):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.api_key: str = Variable.get("API_KEY_RAWPIXEL")
self.headers = {"User-Agent": prov.UA_STRING}

def get_media_type(self, record: dict) -> str:
return constants.IMAGE
Expand Down

0 comments on commit 487142a

Please sign in to comment.