Add --compressed option to curl #14

Merged
merged 2 commits into from Dec 3, 2012

2 participants

@mattbrictson

Some JavaScript libraries are provided by CDNs that always serve gzipped HTTP responses, regardless of the Accept-Encoding header. This is the case 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.

@grosser
Owner

Test or it did not happen :D

@mattbrictson

Test added. Can you merge it?

@grosser
Owner

damn, did not get a notification when you added the test :)
consider it merged!

@grosser grosser merged commit bc60203 into grosser:master Dec 3, 2012

1 check passed

Details default The Travis build passed
@grosser
Owner

thanks! 0.1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment