Fix CertBot 🤦
This commit is contained in:
parent
a784b63f36
commit
d72b7063ec
1 changed files with 1 additions and 1 deletions
|
@ -669,7 +669,7 @@ namespace Mist{
|
||||||
|
|
||||||
// Handle certbot validations
|
// Handle certbot validations
|
||||||
if (req.url.substr(0, 28) == "/.well-known/acme-challenge/"){
|
if (req.url.substr(0, 28) == "/.well-known/acme-challenge/"){
|
||||||
std::string cbToken = H.url.substr(28);
|
std::string cbToken = req.url.substr(28);
|
||||||
jsonForEach(config->getOption("certbot", true), it){
|
jsonForEach(config->getOption("certbot", true), it){
|
||||||
if (it->asStringRef().substr(0, cbToken.size() + 1) == cbToken + ":"){
|
if (it->asStringRef().substr(0, cbToken.size() + 1) == cbToken + ":"){
|
||||||
H.SetHeader("Content-Type", "text/plain");
|
H.SetHeader("Content-Type", "text/plain");
|
||||||
|
|
Loading…
Add table
Reference in a new issue