Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
fix: dist @ url
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jan 8, 2022
1 parent f0ca2ba commit f09757b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ function* download(category, name) {
debug('file %s:%s not exist', category, name);
return this.status = 404;
}
// fix http:https://cnpmjs.oss-ap-southeast-1-internal.aliyuncs.com/dist/%40journeyapps/sqlcipher/v5.3.1/napi-v6-win32-ia32.tar.gz
// to
// http:https://cnpmjs.oss-ap-southeast-1-internal.aliyuncs.com/dist/@journeyapps/sqlcipher/v5.3.1/napi-v6-win32-ia32.tar.gz
if (info.url && info.url.includes('/%40')) {
info.url = info.url.replace('/%40', '/@');
}

if (config.pipeAll) {
if (info.url.indexOf('http') === 0) {
Expand Down

0 comments on commit f09757b

Please sign in to comment.