com.jimuwd.xian.registry-proxy 1.0.102 → 1.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -239,7 +239,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
239
239
  resToDownstreamClient.on('close', cleanup0);
240
240
  // write back body data (chunked probably)
241
241
  // pipe upstream body to downstream client
242
- upstreamResponse.body.pipe(resToDownstreamClient, { end: false });
242
+ upstreamResponse.body.pipe(resToDownstreamClient, { end: true });
243
243
  upstreamResponse.body
244
244
  .on('data', (chunk) => logger.info(`Chunk transferred from ${targetUrl} to downstream client size=${chunk.length}`))
245
245
  .on('end', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",