Fixed osDetector name

This commit is contained in:
Adolfo Gómez García 2021-01-22 09:01:52 +01:00
parent 0f87c022f3
commit cb5a6f2430
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ from PyQt5.QtCore import Qt
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply, QSslCertificate
from PyQt5.QtWidgets import QMessageBox
from . import osDetector
from . import os_detector
from . import VERSION
@ -119,5 +119,5 @@ class RestRequest(QObject):
sslCfg = request.sslConfiguration()
sslCfg.addCaCertificates(certifi.where())
request.setSslConfiguration(sslCfg)
request.setRawHeader(b'User-Agent', osDetector.getOs().encode('utf-8') + b" - UDS Connector " + VERSION.encode('utf-8'))
request.setRawHeader(b'User-Agent', os_detector.getOs().encode('utf-8') + b" - UDS Connector " + VERSION.encode('utf-8'))
self._manager.get(request)