Skip to content

Commit 8fab4a4

Browse files
committed
fix toRequest
1 parent 3bb53fa commit 8fab4a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appapi/src/main/java/com/digital/app/api/AppFunctions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ fun createRequestPart(value: String): AppRequestBody {
425425
)
426426
}
427427

428-
infix fun String.toRequest(value: String): AppRequestBody = createRequestPart(value)
428+
infix fun String.toRequest(value: String): Pair<String,AppRequestBody> = Pair(this,createRequestPart(value))
429429
// url = file path or whatever suitable URL you want.
430430
fun getMimeType(url: String): String? {
431431
if (url.isEmpty()) return null

0 commit comments

Comments
 (0)