Merge pull request #100 from pgibler/master

Fixed protocol bug for responses where the carrier is not supported.
This commit is contained in:
Ian Webster 2016-12-13 21:13:51 -08:00 committed by GitHub
commit 5dab810b23

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;
}