From 6c0cdb75c9da60af3750aa578d43252a9a0b5e44 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Sat, 23 Aug 2025 18:53:52 -0500 Subject: [PATCH] Fix trailing space in ConnectionPool.Key string Motivation: The trailing space is visible in log message metadata, and depending upon the log handler in use, will sometimes be visible due to quoting. Modifications: Just remove the trailing space. Result: There won't be a trailing space in the key anymore. This has no functional impact whatsoever as far as I was able to determine. --- Sources/AsyncHTTPClient/ConnectionPool.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AsyncHTTPClient/ConnectionPool.swift b/Sources/AsyncHTTPClient/ConnectionPool.swift index b5b058c2e..3b45eca05 100644 --- a/Sources/AsyncHTTPClient/ConnectionPool.swift +++ b/Sources/AsyncHTTPClient/ConnectionPool.swift @@ -76,7 +76,7 @@ enum ConnectionPool { hostDescription = socketPath } return - "\(self.scheme)://\(hostDescription)\(self.serverNameIndicatorOverride.map { " SNI: \($0)" } ?? "") TLS-hash: \(hash) " + "\(self.scheme)://\(hostDescription)\(self.serverNameIndicatorOverride.map { " SNI: \($0)" } ?? "") TLS-hash: \(hash)" } } }