mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 08:13:14 +08:00
Added user agent header to firmware update
This commit is contained in:
parent
28aadc1b05
commit
cd11c6832d
@ -39,7 +39,9 @@ class FirmwareUpdateCheckerJob(Job):
|
||||
return
|
||||
|
||||
try:
|
||||
request = urllib.request.Request(self._url)
|
||||
application_name = Application.getInstance().getApplicationName()
|
||||
headers = {"User-Agent": "%s - %s" % (application_name, Application.getInstance().getVersion())}
|
||||
request = urllib.request.Request(self._url, headers = headers)
|
||||
current_version_file = urllib.request.urlopen(request)
|
||||
reader = codecs.getreader("utf-8")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user