Skip to content

Commit 861fcb5

Browse files
committed
Skip param encoding of name of file
1 parent 61d8147 commit 861fcb5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ const main = async (region: string, model: string): Promise<void> => {
167167
);
168168

169169
await axios
170-
.get("http://cloud-neofussvr.sslcs.cdngc.net/NF_DownloadBinaryForMass.do", {
171-
headers,
172-
params: {
173-
file: `${binaryModelPath}${binaryFilename}`,
174-
},
175-
responseType: "stream",
176-
})
170+
.get(
171+
`http://cloud-neofussvr.sslcs.cdngc.net/NF_DownloadBinaryForMass.do?file=${binaryModelPath}${binaryFilename}`,
172+
{
173+
headers,
174+
responseType: "stream",
175+
}
176+
)
177177
.then((res: AxiosResponse) => {
178178
const outputFolder = `${process.cwd()}/${model}_${region}/`;
179179
console.log();

0 commit comments

Comments
 (0)