Skip to content

Commit

Permalink
Fix http error 403 when downloading headers
Browse files Browse the repository at this point in the history
  • Loading branch information
leopph authored and Slavomir Kaslev committed Mar 24, 2022
1 parent d427e50 commit 5f8d7fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gl3w_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def download(url, dst):
return

print('Downloading {0}...'.format(dst))
web = urllib2.urlopen(url)
web = urllib2.urlopen(urllib2.Request(url, headers={'User-Agent': 'Mozilla/5.0'}))
with open(dst, 'wb') as f:
f.writelines(web.readlines())

Expand Down

0 comments on commit 5f8d7fd

Please sign in to comment.