File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22/nodejs /dist /
33/.idea /
44/nodejs /vod_cache
5+ /nodejs /yarn.lock
Original file line number Diff line number Diff line change @@ -205,8 +205,10 @@ export default async function router(fastify) {
205205 }
206206
207207 // 解码 URL 和 Header
208- const decodedUrl = decodeURIComponent ( url ) ;
209- const decodedHeader = header ? JSON . parse ( decodeURIComponent ( header ) ) : { } ;
208+ // const decodedUrl = decodeURIComponent(url);
209+ const decodedUrl = url ;
210+ // const decodedHeader = header ? JSON.parse(decodeURIComponent(header)) : {};
211+ const decodedHeader = header ? JSON . parse ( header ) : { } ;
210212
211213 // 获取当前请求头
212214 const currentHeaders = request . headers ;
@@ -256,7 +258,7 @@ export default async function router(fastify) {
256258 // 处理选项
257259 const option = {
258260 chunkSize : chunkSize ? 1024 * parseInt ( chunkSize , 10 ) : 1024 * 256 ,
259- poolSize : thread ? parseInt ( thread , 10 ) : 5 ,
261+ poolSize : thread ? parseInt ( thread , 10 ) : 6 ,
260262 timeout : 1000 * 10 , // 默认 10 秒超时
261263 } ;
262264
You can’t perform that action at this time.
0 commit comments