Skip to content

Commit

Permalink
[FIX/#47] MediaType 명시 후 RequestBody 전송
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Jun 4, 2024
1 parent edc5b05 commit c2a3434
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class ContentUriRequestBody(

override fun contentLength(): Long = size

// override fun contentType(): MediaType? = OCTET_STREAM.toMediaTypeOrNull()
override fun contentType(): MediaType? = uri?.let { contentResolver.getType(it)?.toMediaTypeOrNull() }

override fun writeTo(sink: BufferedSink) {
Expand All @@ -139,6 +138,5 @@ class ContentUriRequestBody(
companion object {
const val MAX_WIDTH = 1024
const val MAX_HEIGHT = 1024
// private const val OCTET_STREAM = "application/octet-stream"
}
}

0 comments on commit c2a3434

Please sign in to comment.