rename app.setAppCertificate

This commit is contained in:
Girish Ramakrishnan
2015-12-11 14:13:24 -08:00
parent 2f7517152a
commit 0b8fde7d8d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ function setCertificate(req, res, next) {
if (!req.body.cert || typeof req.body.cert !== 'string') return next(new HttpError(400, 'cert must be a string'));
if (!req.body.key || typeof req.body.key !== 'string') return next(new HttpError(400, 'key must be a string'));
certificates.setAppCertificate(req.body.cert, req.body.key, function (error) {
certificates.setFallbackCertificate(req.body.cert, req.body.key, function (error) {
if (error && error.reason === CertificatesError.INVALID_CERT) return next(new HttpError(400, error.message));
if (error) return next(new HttpError(500, error));