mbrictson/vendorer — pull request #1 by mbrictson (2012-11-14 01:21:28+00:00)
Title: Add --compressed option to curl

Some JavaScript libraries are provided by CDNs that always serve gzipped HTTP responses, regardless of the `Accept-Encoding` header. This is with code.highcharts.com, for example.

The problem is that by default, curl will not decompress these responses. So using vendorer to fetch something from code.highcharts.com will result in binary gzip data being saved, rather than the expected JavaScript.

My solution is to add the `--compressed` option to curl, which turns on gzip handling. With this change, resources fetched from code.highcharts.com are properly decompressed and saved as JavaScript.