mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
fix invalid HTTP header values when hijacking a connection
Signed-off-by: Denys Knertser <denys@avassa.io>
This commit is contained in:
@ -217,7 +217,7 @@ func writeHijackHeader(r *http.Request, conn io.Writer, tty bool) {
|
||||
// Upgraded
|
||||
fmt.Fprintf(conn,
|
||||
"HTTP/1.1 101 UPGRADED\r\nContent-Type: %s\r\nConnection: Upgrade\r\nUpgrade: %s\r\n\r\n",
|
||||
proto, header)
|
||||
header, proto)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user