fix: set duplex property when uploading media to server (#1837)
* fix: set duplex to half in getWAUploadToServer * fix: add duplex to RequestInit interface
This commit is contained in:
@@ -674,6 +674,7 @@ export const getWAUploadToServer = (
|
||||
'Content-Type': 'application/octet-stream',
|
||||
Origin: DEFAULT_ORIGIN
|
||||
},
|
||||
duplex: 'half',
|
||||
// Note: custom agents/proxy require undici Agent; omitted here.
|
||||
signal: timeoutMs ? AbortSignal.timeout(timeoutMs) : undefined
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user