Merge branch 'inference-bug'
# Conflicts: # lyngio/src/commonMain/kotlin/net/sergeych/lyng/io/http/LyngHttpModule.kt
This commit is contained in:
commit
9bee0aed5b
15 files changed
+117
-15
No files matched your search
@@ -332,7 +332,9 @@ private class ObjHttpResponse(
|
||||
fun from(response: LyngHttpResponse): ObjHttpResponse {
|
||||
val single = linkedMapOf<String, String>()
|
||||
response.headers.forEach { (name, values) ->
|
||||
if (values.isNotEmpty() && name !in single) single[name] = values.first()
|
||||
if (values.isNotEmpty() && !single.containsKey(name)) {
|
||||
single[name] = values.first()
|
||||
}
|
||||
}
|
||||
return ObjHttpResponse(
|
||||
status = response.status.toLong(),
|
||||
|
||||
Reference in new issue
Block a user