Skip to content

Commit 903d259

Browse files
committed
Add user agent in fwfetcher.py
Fixes #469 Signed-off-by: Benn Snyder <[email protected]>
1 parent 5c1eb71 commit 903d259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fwfetcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def getFileOrURL(filename, url):
531531
except IOError:
532532
pass
533533
print("Downloading", filename, "from", url)
534-
req = Request(url)
534+
req = Request(url, headers={'User-Agent': 'Mozilla/5.0'})
535535
try:
536536
response = urlopen(req)
537537
except URLError as e:

0 commit comments

Comments
 (0)