Permalink
Browse files

fixed status code comparison

  • Loading branch information...
1 parent ef668c9 commit a339cebca622a3c9d56bb123609086f14e025008 @pdfcrowd committed Apr 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pdfcrowd.js
View
@@ -49,7 +49,7 @@ Pdfcrowd.prototype.convertHtml = function(server_res, html, options) {
var req = http.request(httpOptions, function(res) {
console.log('HEADERS: ' + JSON.stringify(res.headers));
- if (res.statusCode < 299) {
+ if (res.statusCode < 300) {
that.callbacks['pdf'](res);
}
else {

0 comments on commit a339ceb

Please sign in to comment.