mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix the default content-type for HTTP PUT requests in NetworkedPrinterOutputDevice
CL-1237
This commit is contained in:
parent
f2fbb4e989
commit
18786a1e7d
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|||
# \param content_type: The content type of the body data.
|
||||
# \param on_finished: The function to call when the response is received.
|
||||
# \param on_progress: The function to call when the progress changes. Parameters are bytes_sent / bytes_total.
|
||||
def put(self, url: str, data: Union[str, bytes], content_type: Optional[str] = None,
|
||||
def put(self, url: str, data: Union[str, bytes], content_type: Optional[str] = "application/json",
|
||||
on_finished: Optional[Callable[[QNetworkReply], None]] = None,
|
||||
on_progress: Optional[Callable[[int, int], None]] = None) -> None:
|
||||
self._validateManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue