@authx/http-proxy-client
Advanced tools
Comparing version 3.1.0-alpha.10 to 3.1.0-alpha.11
@@ -81,2 +81,3 @@ "use strict"; | ||
if (this._closed || this._closing) { | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 503; | ||
@@ -87,2 +88,3 @@ meta.message = "Request handled by readiness endpoint: NOT READY."; | ||
} | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 200; | ||
@@ -115,2 +117,3 @@ meta.message = "Request handled by readiness endpoint: READY."; | ||
catch (error) { | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 503; | ||
@@ -142,2 +145,3 @@ meta.message = | ||
: 500; | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.writeHead(statusCode); | ||
@@ -150,2 +154,3 @@ response.end(); | ||
} | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 404; | ||
@@ -152,0 +157,0 @@ meta.message = "No rules matched requested URL."; |
@@ -55,3 +55,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "3.1.0-alpha.10" | ||
"version": "3.1.0-alpha.11" | ||
} |
@@ -282,2 +282,3 @@ import { createHash } from "crypto"; | ||
if (this._closed || this._closing) { | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 503; | ||
@@ -289,2 +290,3 @@ meta.message = "Request handled by readiness endpoint: NOT READY."; | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 200; | ||
@@ -324,2 +326,3 @@ meta.message = "Request handled by readiness endpoint: READY."; | ||
} catch (error) { | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 503; | ||
@@ -355,2 +358,3 @@ meta.message = | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.writeHead(statusCode); | ||
@@ -366,2 +370,3 @@ response.end(); | ||
response.setHeader("Cache-Control", "no-cache"); | ||
response.statusCode = 404; | ||
@@ -368,0 +373,0 @@ meta.message = "No rules matched requested URL."; |
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
96223
1742