This commit is contained in:
syuilo
2018-10-13 13:13:15 +09:00
parent 946c706913
commit 2b0a919fb5
6 changed files with 19 additions and 15 deletions

View File

@@ -37,6 +37,7 @@ export default async (url: string, user: IUser, folderId: mongodb.ObjectID = nul
const requestUrl = URL.parse(url).pathname.match(/[^\u0021-\u00ff]/) ? encodeURI(url) : url;
request({
url: requestUrl,
proxy: config.proxy,
headers: {
'User-Agent': config.user_agent
}