Skip to content
This repository has been archived by the owner on Jul 26, 2019. It is now read-only.

Commit

Permalink
include Accept-Encoding header in request
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Apr 27, 2014
1 parent bee9a5f commit e83e6a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/index.js
Expand Up @@ -49,6 +49,8 @@ module.exports = function streamin(io, requestOptions) {
var stream = streamify();
requestOptions = requestOptions || {};
requestOptions.url = io;
requestOptions.headers = requestOptions.headers || {};
requestOptions.headers['Accept-Encoding'] = 'gzip, deflate';

var req = request(requestOptions);
req.on('error', function(err) {
Expand Down

0 comments on commit e83e6a9

Please sign in to comment.