mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Removed hardcoded url
CURA-49
This commit is contained in:
parent
982258ece7
commit
bb1a616c1f
1 changed files with 2 additions and 3 deletions
|
@ -151,11 +151,10 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
self._qt_part.setBody(single_string_file_data)
|
||||
self._qt_multi_part.append(self._qt_part)
|
||||
|
||||
url = "http://" + self._address + self._api_prefix + "print_job"
|
||||
url = QUrl("http://" + self._address + self._api_prefix + "print_job")
|
||||
|
||||
url_2 = "http://10.180.0.53/api/v1/print_job"
|
||||
## Create the QT request
|
||||
self._qt_request = QNetworkRequest(QUrl("http://10.180.0.53/api/v1/print_job"))
|
||||
self._qt_request = QNetworkRequest(url)
|
||||
|
||||
## Post request + data
|
||||
self._qt_reply = self._manager.post(self._qt_request, self._qt_multi_part)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue