Skip to content

Commit

Permalink
Merge pull request #43 from internxt/feature/dont-use-proxy-s3-download
Browse files Browse the repository at this point in the history
[INFRA-93]: feature/dont-use-proxy-s3-download
  • Loading branch information
AlexMenor authored Dec 17, 2021
2 parents 013a346 + 08ddf71 commit 66632b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/inxt-js",
"version": "1.2.16",
"version": "1.2.17",
"description": "",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/core/download/oneStreamStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ function getDownloadStream(
cb: (err: Error | null | undefined, stream: Readable | null) => void,
useProxy = false,
): void {
ShardObject.requestGet(buildRequestUrlShard(shard), useProxy)
ShardObject.requestGet(buildRequestUrlShard(shard))
.then((url) => getStream(url, { useProxy }))
.then((stream) => {
cb(null, stream);
Expand Down
2 changes: 1 addition & 1 deletion src/services/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function streamRequest(targetUrl: string, timeoutSeconds?: number): Reada
port: uriParts.port,
path: uriParts.path,
headers: {
'content-type': 'application/octet-stream',
Accept: 'binary/octet-stream',
},
};

Expand Down

0 comments on commit 66632b4

Please sign in to comment.