com.jimuwd.xian.registry-proxy 1.0.88 → 1.0.89
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 +0 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -216,7 +216,6 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
|
|
|
216
216
|
});
|
|
217
217
|
if (!safeHeaders['content-type'])
|
|
218
218
|
safeHeaders['content-type'] = 'application/octet-stream';
|
|
219
|
-
const contentType = safeHeaders['content-type'];
|
|
220
219
|
if (!upstreamResponse.body) {
|
|
221
220
|
logger.error(`Empty response body from upstream ${targetUrl}`);
|
|
222
221
|
resToDownstreamClient.writeHead(502).end('Empty Upstream Response');
|