We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc70f95 commit f910ba8Copy full SHA for f910ba8
VERSION
@@ -1 +1 @@
1
-0.35.0
+0.35.1
pkg/codefresh/codefresh.go
@@ -8,6 +8,7 @@ import (
8
"fmt"
9
"io/ioutil"
10
"net/http"
11
+ "regexp"
12
"strings"
13
14
"github.com/google/go-querystring/query"
@@ -48,6 +49,14 @@ func New(opt *ClientOptions) Codefresh {
48
49
httpClient = opt.Client
50
}
51
52
+ re := regexp.MustCompile("/$")
53
+
54
+ if re.FindString(opt.Host) != "" {
55
+ if len(opt.Host) > 1 {
56
+ opt.Host = opt.Host[:len(opt.Host) - 1]
57
+ }
58
59
60
return &codefresh{
61
host: opt.Host,
62
token: opt.Auth.Token,
0 commit comments