Update step_type_boot_command.go

This commit is contained in:
Ariel Sandor 2021-03-16 09:13:24 -03:00 committed by Daniel Koschützki
parent f566af1fae
commit 393edf4050

View File

@ -91,7 +91,6 @@ func (self *StepTypeBootCommand) Run(ctx context.Context, state multistep.StateB
}
tlsConn := tls.Client(conn, tlsConfig)
ui.Say(fmt.Sprintf("%s", strings.TrimSuffix(locationPieces[2], "/")))
consoleLocation := strings.TrimSpace(fmt.Sprintf("/%s", locationPieces[len(locationPieces)-1]))
httpReq := fmt.Sprintf("CONNECT %s HTTP/1.0\r\nHost: %s\r\nCookie: session_id=%s\r\n\r\n", consoleLocation, consoleHost, c.session)
fmt.Printf("Sending the follow http req: %v", httpReq)