mirror of
https://github.com/bitwarden/android.git
synced 2026-03-12 05:04:17 -05:00
Set all multiipart request MIME types to 'multipart/form-data' (#1467)
This commit is contained in:
committed by
Álison Fernandes
parent
5e52b5a53d
commit
f03f9e63d4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user