We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02df2bb commit ef30e95Copy full SHA for ef30e95
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
@@ -328,6 +328,6 @@ class HttpLoggingInterceptor
328
329
private fun bodyIsStreaming(response: Response): Boolean {
330
val contentType = response.body.contentType()
331
- return contentType != null && contentType.type == "text" && contentType.subtype == "event-stream"
+ return contentType != null && ((contentType.type == "text" && contentType.subtype == "event-stream") || (contentType.type == "application" && contentType.subtype == "octet-stream"))
332
}
333
0 commit comments