From 95cbe86eefa700869ddb2b4601f8d6fd65950e53 Mon Sep 17 00:00:00 2001 From: Jose Nino Date: Thu, 20 Feb 2020 16:14:13 -0800 Subject: [PATCH] demorgans Signed-off-by: Jose Nino --- library/kotlin/src/io/envoyproxy/envoymobile/RequestMapper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/kotlin/src/io/envoyproxy/envoymobile/RequestMapper.kt b/library/kotlin/src/io/envoyproxy/envoymobile/RequestMapper.kt index 101bba19e7..24f146351c 100644 --- a/library/kotlin/src/io/envoyproxy/envoymobile/RequestMapper.kt +++ b/library/kotlin/src/io/envoyproxy/envoymobile/RequestMapper.kt @@ -4,7 +4,7 @@ internal fun Request.outboundHeaders(): Map> { val retryPolicyHeaders = retryPolicy?.outboundHeaders() ?: emptyMap() val result = mutableMapOf>() - result.putAll(headers.filter { entry -> !(entry.key.startsWith(":") || entry.key.startsWith("x-envoy-mobile"))}) + result.putAll(headers.filter { entry -> !entry.key.startsWith(":") && !entry.key.startsWith("x-envoy-mobile")}) result.putAll(retryPolicyHeaders) result[":method"] = listOf(method.stringValue()) result[":scheme"] = listOf(scheme)