mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Make createFormParts public
Because the postFormWithParts function is public and it needs these parts that can (or should) only be created with this function. Contributes to issue CURA-5034.
This commit is contained in:
parent
2e005a09ac
commit
b2cd0ffc0f
3 changed files with 6 additions and 6 deletions
|
@ -161,7 +161,7 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice):
|
|||
request.setHeader(QNetworkRequest.UserAgentHeader, self._user_agent)
|
||||
return request
|
||||
|
||||
def _createFormPart(self, content_header, data, content_type = None) -> QHttpPart:
|
||||
def createFormPart(self, content_header, data, content_type = None) -> QHttpPart:
|
||||
part = QHttpPart()
|
||||
|
||||
if not content_header.startswith("form-data;"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue