mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 07:53:39 +00:00
dep updates/remove useless files/fix reachability test?
Update zoeyvid/nginx-quic Docker tag to v110 Update zoeyvid/nginx-quic Docker tag to v109 Update zoeyvid/nginx-quic Docker tag to v107 Update dependency liquidjs to v10.7.1 Update dependency eslint to v8.38.0 remove empty folder Delete Hosts.spec.js Fix for SSL certificate error #2011 by @S-T-3-V-3 - Keepalive, User Agent + Accept headers - Catch added for failed JSON parsing - More accurate errors displayed to user Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
@@ -1 +0,0 @@
|
||||
|
@@ -1152,7 +1152,10 @@ const internalCertificate = {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Content-Length': Buffer.byteLength(formBody)
|
||||
'Content-Length': Buffer.byteLength(formBody),
|
||||
'Connection': 'keep-alive',
|
||||
'User-Agent': 'Nginx Proxy Manager',
|
||||
'Accept': '*/*'
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1163,12 +1166,16 @@ const internalCertificate = {
|
||||
|
||||
res.on('data', (chunk) => responseBody = responseBody + chunk);
|
||||
res.on('end', function () {
|
||||
const parsedBody = JSON.parse(responseBody + '');
|
||||
if (res.statusCode !== 200) {
|
||||
try {
|
||||
const parsedBody = JSON.parse(responseBody + '');
|
||||
resolve(parsedBody);
|
||||
}
|
||||
catch (error) {
|
||||
logger.warn('Error');
|
||||
logger.warn(`Status Code: ${res.statusCode}`);
|
||||
logger.warn(`Failed to test HTTP challenge for domain ${domain}`, res);
|
||||
resolve(undefined);
|
||||
}
|
||||
resolve(parsedBody);
|
||||
});
|
||||
});
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
"gravatar": "1.8.2",
|
||||
"jsonwebtoken": "9.0.0",
|
||||
"knex": "2.4.2",
|
||||
"liquidjs": "10.7.0",
|
||||
"liquidjs": "10.7.1",
|
||||
"lodash": "4.17.21",
|
||||
"moment": "2.29.4",
|
||||
"mysql": "2.18.1",
|
||||
@@ -30,7 +30,7 @@
|
||||
"author": "Jamie Curnow <jc@jc21.com>",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"eslint": "8.37.0",
|
||||
"eslint": "8.38.0",
|
||||
"eslint-plugin-align-assignments": "1.1.2"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user