Skip to content

Commit e215886

Browse files
committed
logger: add https detection
1 parent ad21c01 commit e215886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (l Logger) Close() error {
3030
// GetLogs is used to retrieve a parsable logger object
3131
func (s *Shell) GetLogs() (Logger, error) {
3232
var url string
33-
if !strings.HasPrefix(s.url, "http://") {
33+
if !strings.HasPrefix(s.url, "http://") || !strings.HasPrefix(s.url, "https://") {
3434
url = fmt.Sprintf("http://%s/api/v0/log/tail", s.url)
3535
} else {
3636
url = s.url

0 commit comments

Comments
 (0)