espelhamento de
https://github.com/therootcompany/greenlock-express.js.git
sincronizado 2024-11-16 17:28:59 +00:00
bugfix packageAgent
Esse commit está contido em:
pai
2a9b463964
commit
26adaf2037
@ -59,13 +59,13 @@ module.exports.create = function(opts) {
|
||||
|
||||
function addGreenlockAgent(opts) {
|
||||
// Add greenlock as part of Agent, unless this is greenlock
|
||||
if (!/greenlock(-express|-pro)?/i.test(opts.packageAgent)) {
|
||||
var packageAgent = opts.packageAgent || "";
|
||||
if (!/greenlock(-express|-pro)?/i.test(packageAgent)) {
|
||||
var pkg = require("./package.json");
|
||||
var packageAgent = "Greenlock_Express/" + pkg.version;
|
||||
opts.packageAgent += " " + packageAgent;
|
||||
packageAgent += " Greenlock_Express/" + pkg.version;
|
||||
}
|
||||
|
||||
return opts.packageAgent;
|
||||
return packageAgent.trim();
|
||||
}
|
||||
|
||||
// ex: John Doe <john@example.com> (https://john.doe)
|
||||
|
||||
Carregando…
x
Referência em uma nova issue
Block a user