Permalink
Browse files

bug fixed after uploading to imgur

  • Loading branch information...
iamdenny committed May 29, 2013
1 parent 3456594 commit fc7c828c9f45d62e102f7f7ccbab7f098a8f97cc
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/imgur-upload.js
View
@@ -26,7 +26,11 @@ var imgur = {
}
};
var post = request.post(options, function(err, req, body){
_cb(err, JSON.parse(body));
try{
_cb(err, JSON.parse(body));
} catch(e){
_cb(err, body);
}
});
var upload = post.form();
upload.append('type', 'file');

0 comments on commit fc7c828

Please sign in to comment.