Fix inference regression and green tests
This commit is contained in:
1 parent
d409a4bb8b
commit
7b65ff9d0e
5 files changed
+91
-13
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()) single.putIfAbsent(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