GitHub PushEvent at 2014-09-16 18:33:54
Repository: reddit
Actor: alienth
Payload: {"shas":[["32e5de36420609e02e02b906f318ba40d38430bb","31b3ae2b9b2f08c5af0727eab60f73e149066cff@reddit.com","Do not request gzipped media responses by default.\n\nFor some reason, Twitter's image server will sometimes gzip the main\nprofile picture found on a tweet page. Since we don't properly deflate\nthis gzipped image in _fetch_image_size(), we end up tossing out the\nmain account's profile image as a possible thumbnail. Since this\nbehaviour only happens sometimes, our scraper eventually finds a\nnon-gzipped image it can use, meaning we sometimes snag some random\nperson's profile image erroneously.\n\nExample: http://redd.it/2gh3mu\n\nImages generally don't benefit from gzip compression. We also chunk\nimage fetching so it is unlikely we'll grab much more than 1k. Instead\nof trying to deflate these oddly gzipped images, I've made\n_initialize_request() not fetch gzipped objects by default, and have\nmodified _fetch_url() to request gzipped objects since it *does*\nproperly deflate.","Jason Harvey",true]],"size":1,"ref":"refs/heads/master","head":"32e5de36420609e02e02b906f318ba40d38430bb"}