We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7fdf9f commit 4ddde45Copy full SHA for 4ddde45
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