Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support oneshot forms #8160

Merged
merged 3 commits into from
Dec 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support oneshot forms
yschimke committed Dec 24, 2023
commit d74a5fa91fecd8848c0e27aa50920f839b6fc75a
2 changes: 1 addition & 1 deletion okhttp/src/main/kotlin/okhttp3/MultipartBody.kt
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ class MultipartBody internal constructor(
fun part(index: Int): Part = parts[index]

override fun isOneShot(): Boolean {
return parts.find { it.body.isOneShot() } != null
return parts.any { it.body.isOneShot() }
}

/** A combination of [type] and [boundaryByteString]. */