com.jimuwd.xian.registry-proxy 1.0.83 → 1.0.84
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
|
@@ -204,7 +204,7 @@ async function writeResponseToDownstreamClient(registryInfo, targetUrl, resToDow
|
|
|
204
204
|
const bodyData = JSON.stringify(data);
|
|
205
205
|
resetHeaderContentLengthIfTransferEncodingIsAbsent(safeHeaders, targetUrl, bodyData);
|
|
206
206
|
logger.info(`Response to downstream client headers`, JSON.stringify(safeHeaders));
|
|
207
|
-
resToDownstreamClient.writeHead(upstreamResponse.status, safeHeaders).end(bodyData);
|
|
207
|
+
resToDownstreamClient.writeHead(upstreamResponse.status, /*safeHeaders*/ { 'content-type': 'application/json' }).end(bodyData);
|
|
208
208
|
}
|
|
209
209
|
else if (contentType.includes('application/octet-stream')) {
|
|
210
210
|
// 二进制流处理
|