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.
- package/dist/index.js +1 -1
- 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:
|
|
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', () => {
|