mirror of
https://github.com/bitwarden/android.git
synced 2025-02-16 11:59:57 +03:00
Set all multiipart request MIME types to 'multipart/form-data' (#1467)
This commit is contained in:
parent
5e52b5a53d
commit
f03f9e63d4
2 changed files with 2 additions and 0 deletions
|
@ -194,6 +194,7 @@ class CiphersServiceImpl(
|
|||
): MultipartBody.Builder =
|
||||
MultipartBody
|
||||
.Builder(boundary = "--BWMobileFormBoundary${clock.instant().toEpochMilli()}")
|
||||
.setType(type = MultipartBody.FORM)
|
||||
.addPart(
|
||||
part = MultipartBody.Part.createFormData(
|
||||
body = encryptedFile.asRequestBody(
|
||||
|
|
|
@ -93,6 +93,7 @@ class SendsServiceImpl(
|
|||
.Builder(
|
||||
boundary = "--BWMobileFormBoundary${clock.instant().toEpochMilli()}",
|
||||
)
|
||||
.setType(type = MultipartBody.FORM)
|
||||
.addPart(
|
||||
part = MultipartBody.Part.createFormData(
|
||||
body = encryptedFile.asRequestBody(
|
||||
|
|
Loading…
Add table
Reference in a new issue