com.jimuwd.xian.registry-proxy 1.0.80 → 1.0.81

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
@@ -253,7 +253,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
253
253
  // if transfer-encoding header is absent, then set the content-length header.
254
254
  safeHeaders["content-length"] = bodyData.length;
255
255
  }
256
- resToDownstreamClient.writeHead(upstreamResponse.status, safeHeaders).end();
256
+ resToDownstreamClient.writeHead(upstreamResponse.status, safeHeaders).end(bodyData);
257
257
  }
258
258
  }
259
259
  catch (err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.jimuwd.xian.registry-proxy",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "A lightweight npm registry proxy with fallback support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",