Fix #632: Make sure StreamChannels is enabled in rest/client.
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
99638cddb2
commit
596c1f5096
|
@ -428,6 +428,9 @@ func (c *defaultClient) AddMultiFile(
|
|||
|
||||
headers := make(map[string]string)
|
||||
headers["Content-Type"] = "multipart/form-data; boundary=" + multiFileR.Boundary()
|
||||
|
||||
// This method must run with StreamChannels set.
|
||||
params.StreamChannels = true
|
||||
queryStr := params.ToQueryString()
|
||||
|
||||
// our handler decodes an AddedOutput and puts it
|
||||
|
|
|
@ -448,11 +448,12 @@ func TestAddMultiFile(t *testing.T) {
|
|||
Name: "test something",
|
||||
ShardSize: 1024,
|
||||
},
|
||||
Shard: false,
|
||||
Layout: "",
|
||||
Chunker: "",
|
||||
RawLeaves: false,
|
||||
Hidden: false,
|
||||
Shard: false,
|
||||
Layout: "",
|
||||
Chunker: "",
|
||||
RawLeaves: false,
|
||||
Hidden: false,
|
||||
StreamChannels: true,
|
||||
}
|
||||
|
||||
out := make(chan *types.AddedOutput, 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user