Update step_type_boot_command.go

This commit is contained in:
Ariel Sandor 2021-03-16 09:13:24 -03:00 committed by GitHub
parent fb1d23ca8e
commit 64fb82b190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)