Skip to content

Commit

Permalink
Update UA
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrobolcato committed Jul 17, 2024
1 parent dffac3a commit 698fb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vectorizing/util/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def try_read_image_from_path(path):

def try_read_image_from_url(url):
try:
resp = requests.get(url)
resp = requests.get(url, headers={"User-Agent": "KittlVectorizing/1.0.0"})
img = Image.open(BytesIO(resp.content))
except:
raise URLReadError()
Expand Down

0 comments on commit 698fb82

Please sign in to comment.