Skip to content

Commit

Permalink
Fixes for RAR / Zip Streams
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba committed Mar 14, 2024
1 parent 85e7199 commit a8bed37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/withStreamingServer/createRar.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function buildRarStream(streamingServerURL, key, fileIdx, fileMustInclude) {
opts.fileMustInclude = fileMustInclude;
}
return {
url: url.resolve(streamingServerURL, '/rar/stream?key=' + encodeURIComponent(key) + (Object.keys(opts).length ? 'o=' + encodeURIComponent(JSON.stringify(opts)) : '')),
url: url.resolve(streamingServerURL, '/rar/stream?key=' + encodeURIComponent(key) + (Object.keys(opts).length ? '&o=' + encodeURIComponent(JSON.stringify(opts)) : '')),
fileIdx: fileIdx,
fileMustInclude: fileMustInclude
};
Expand Down
2 changes: 1 addition & 1 deletion src/withStreamingServer/createZip.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function buildZipStream(streamingServerURL, key, fileIdx, fileMustInclude) {
opts.fileMustInclude = fileMustInclude;
}
return {
url: url.resolve(streamingServerURL, '/zip/stream?key=' + encodeURIComponent(key) + (Object.keys(opts).length ? 'o=' + encodeURIComponent(JSON.stringify(opts)) : '')),
url: url.resolve(streamingServerURL, '/zip/stream?key=' + encodeURIComponent(key) + (Object.keys(opts).length ? '&o=' + encodeURIComponent(JSON.stringify(opts)) : '')),
fileIdx: fileIdx,
fileMustInclude: fileMustInclude
};
Expand Down

0 comments on commit a8bed37

Please sign in to comment.