@silenteer/natsu-port-server
Advanced tools
Comparing version 0.0.30 to 0.0.32
@@ -62,3 +62,3 @@ "use strict"; | ||
logger_1.default.log(`----- [${subject}]Begin send nats request -----`); | ||
const response = yield sendNatsRequest({ | ||
const { headers, response } = yield sendNatsRequest({ | ||
httpRequest: request, | ||
@@ -68,2 +68,5 @@ natsAuthResponse: authenticationResult.authResponse, | ||
logger_1.default.log(`----- [${subject}]End send nats request -----`); | ||
if (headers['set-cookie']) { | ||
reply.header('set-cookie', headers['set-cookie']); | ||
} | ||
reply.send(response); | ||
@@ -275,3 +278,3 @@ } | ||
logger_1.default.log(`----- [${natsRequest.headers['nats-subject']}] Ending -----`, portResponse); | ||
return portResponse; | ||
return { headers: natsResponse.headers, response: portResponse }; | ||
}); | ||
@@ -278,0 +281,0 @@ } |
{ | ||
"name": "@silenteer/natsu-port-server", | ||
"version": "0.0.30", | ||
"version": "0.0.32", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47361
737