Fixed protocol bug for responses where the carrier is not supported.

This commit is contained in:
Paul Gibler 2016-12-11 15:48:30 -05:00
parent d48b2e67a9
commit d773319b32

View File

@ -125,7 +125,7 @@ function textRequestHandler(req, res, number, carrier, region, key) {
if (carrier != null) {
carrier = carrier.toLowerCase();
if (carriers[carrier] == null) {
res.send({succes:false, message:'Carrier ' + carrier + ' not supported! POST getcarriers=1 to '
res.send({success:false, message:'Carrier ' + carrier + ' not supported! POST getcarriers=1 to '
+ 'get a list of supported carriers'});
return;
}