Skip to content

Commit c72a3eb

Browse files
committed
Fix Host header (swift-server#650)
1 parent 1329e84 commit c72a3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Sources/AsyncHTTPClient/ConnectionPool/ChannelHandler/HTTP1ProxyConnectHandler.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ final class HTTP1ProxyConnectHandler: ChannelDuplexHandler, RemovableChannelHand
165165
if (self.targetPort != self.scheme.defaultPort) {
166166
host += ":\(self.targetPort)"
167167
}
168-
head.headers.replaceOrAdd(name: "host", value: host)
168+
head.headers.add(name: "host", value: host)
169169
}
170170
if let authorization = self.proxyAuthorization {
171171
head.headers.replaceOrAdd(name: "proxy-authorization", value: authorization.headerValue)

0 commit comments

Comments
 (0)