mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added user agent header to firmware update
This commit is contained in:
parent
28aadc1b05
commit
cd11c6832d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue