mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-05 00:31:12 -07:00
Fix returning reply on postFormWithParts
This commit is contained in:
parent
c7bb6931f4
commit
8ad8489af0
1 changed files with 2 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class NetworkClient:
|
|||
## Does a POST request with form parts to the given URL.
|
||||
def postFormWithParts(self, target: str, parts: List[QHttpPart],
|
||||
on_finished: Optional[Callable[[QNetworkReply], None]],
|
||||
on_progress: Callable = None) -> None:
|
||||
on_progress: Callable = None) -> QNetworkReply:
|
||||
self._validateManager()
|
||||
|
||||
request = self._createEmptyRequest(target, content_type = None)
|
||||
|
|
@ -218,3 +218,4 @@ class NetworkClient:
|
|||
reply.uploadProgress.connect(on_progress)
|
||||
|
||||
self._registerOnFinishedCallback(reply, on_finished)
|
||||
return reply
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue