Skip to content

Commit

Permalink
[utils] bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Feb 23, 2017
1 parent a09fe04 commit bfe9753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ var getUrl = exports.getUrl = function(url, options) {
.on('response', function(res) {

var contentEncoding = res.headers['content-encoding'];
contentEncoding = contentEncoding.trim().toLowerCase();
contentEncoding = contentEncoding && contentEncoding.trim().toLowerCase();

var zlibOptions = {
flush: zlib.Z_SYNC_FLUSH,
Expand Down

0 comments on commit bfe9753

Please sign in to comment.