Skip to content

Instantly share code, notes, and snippets.

# check if file is gzipped, etc.
function check_headers {
curl -I -H 'Accept-Encoding: gzip,deflate' $1
}