Skip to content

Commit

Permalink
Fix Host header (swift-server#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelIsaev committed Dec 6, 2022
1 parent 1329e84 commit c72a3eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ final class HTTP1ProxyConnectHandler: ChannelDuplexHandler, RemovableChannelHand
if (self.targetPort != self.scheme.defaultPort) {
host += ":\(self.targetPort)"
}
head.headers.replaceOrAdd(name: "host", value: host)
head.headers.add(name: "host", value: host)
}
if let authorization = self.proxyAuthorization {
head.headers.replaceOrAdd(name: "proxy-authorization", value: authorization.headerValue)
Expand Down

0 comments on commit c72a3eb

Please sign in to comment.