{"action":"opened","issue":{"url":"https://api.github.com/repos/s3ththompson/new-work/issues/11","repository_url":"https://api.github.com/repos/s3ththompson/new-work","labels_url":"https://api.github.com/repos/s3ththompson/new-work/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/s3ththompson/new-work/issues/11/comments","events_url":"https://api.github.com/repos/s3ththompson/new-work/issues/11/events","html_url":"https://github.com/s3ththompson/new-work/issues/11","id":296004606,"number":11,"title":"gzip support","user":{"login":"bndw","id":4248167,"avatar_url":"https://avatars0.githubusercontent.com/u/4248167?v=4","gravatar_id":"","url":"https://api.github.com/users/bndw","html_url":"https://github.com/bndw","followers_url":"https://api.github.com/users/bndw/followers","following_url":"https://api.github.com/users/bndw/following{/other_user}","gists_url":"https://api.github.com/users/bndw/gists{/gist_id}","starred_url":"https://api.github.com/users/bndw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bndw/subscriptions","organizations_url":"https://api.github.com/users/bndw/orgs","repos_url":"https://api.github.com/users/bndw/repos","events_url":"https://api.github.com/users/bndw/events{/privacy}","received_events_url":"https://api.github.com/users/bndw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T20:39:06Z","updated_at":"2018-02-09T20:39:06Z","closed_at":null,"author_association":"NONE","body":"I'm trying to add [a site](https://camrindengel.com) that returns `gzip` compressed data, however I'm unable find any element selectors that work. I suspect this may be related to the gzipped data.\r\n\r\nLooking at the [request](https://github.com/request/request#examples) package you're using it appears that `gzip` must be explicitly enabled on a per-request basis:\r\n\r\n> For backwards-compatibility, response compression is not supported by default. To accept gzip-compressed responses, set the `gzip` option to true. Note that the body data passed through request is automatically decompressed while the response object is unmodified and will contain compressed data if the server sent a compressed response.\r\n```js\r\nvar request = require('request')\r\n  request(\r\n    { method: 'GET'\r\n    , uri: 'http://www.google.com'\r\n    , gzip: true\r\n    }\r\n  , function (error, response, body) {\r\n      // body is the decompressed response body\r\n      console.log('server encoded the data as: ' + (response.headers['content-encoding'] || 'identity'))\r\n      console.log('the decoded data is: ' + body)\r\n    }\r\n  )\r\n  .on('data', function(data) {\r\n    // decompressed data as it is received\r\n    console.log('decoded chunk: ' + data)\r\n  })\r\n  .on('response', function(response) {\r\n    // unmodified http.IncomingMessage object\r\n    response.on('data', function(data) {\r\n      // compressed data as it is received\r\n      console.log('received ' + data.length + ' bytes of compressed data')\r\n    })\r\n  })\r\n```\r\n"}}
{"actor":{"display_login":"bndw"}}