We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7fdf9f + 4ddde45 commit e6c61fbCopy full SHA for e6c61fb
client/output.go
@@ -26,16 +26,15 @@ type OutputReader interface {
26
// GetOutput reads the build output log for the provided buildID - streaming to
27
// OutputReader. The context controls the lifetime of the request.
28
func (c *Client) GetOutput(ctx context.Context, buildID string, or OutputReader) error {
29
+ u := c.BaseURL.ResolveReference(&url.URL{
30
+ Path: "v1/build-ws/" + buildID,
31
+ })
32
+
33
wsScheme := "ws"
34
if c.BaseURL.Scheme == "https" {
35
wsScheme = "wss"
36
}
- u := c.BaseURL.ResolveReference(&url.URL{
- Scheme: wsScheme,
- Host: c.BaseURL.Host,
- Path: "/v1/build-ws/" + buildID,
37
- RawQuery: "",
38
- })
+ u.Scheme = wsScheme
39
40
h := http.Header{}
41
c.setRequestHeaders(h)
0 commit comments