Permalink
Browse files

fixed typo in notifo.js / responce becomes response

  • Loading branch information...
kilianc committed Feb 6, 2011
1 parent 29ac4dc commit c2b6b3865dc3cca44b8aa6ea54b65784e43f6ca3
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/notifo.js
View
@@ -49,11 +49,11 @@ Notifo.prototype.send = function (options, callback) {
res.setEncoding('utf8');
res.on('data', function(body) {
try {
- var responce = JSON.parse(body.match(/{"status.*/)[0].trim());
- if (responce['response_code'] !== 2201) {
- callback(new Error('notifo code '+responce['response_code']+': '+responce['response_message']), responce);
+ var response = JSON.parse(body.match(/{"status.*/)[0].trim());
+ if (response['response_code'] !== 2201) {
+ callback(new Error('notifo code '+response['response_code']+': '+response['response_message']), response);
} else {
- callback(null, responce);
+ callback(null, response);
}
} catch(e) {
callback(e, null);

0 comments on commit c2b6b38

Please sign in to comment.