pivotal-cf / azure-blobstore-resource

A concourse resource to interact with the azure blob service.
MIT License
16 stars 15 forks source link

tar.gz is not supported #41

Closed kungfoome closed 3 years ago

kungfoome commented 3 years ago

Issue: When a file is named as tar.gz instead of tgz the mime type comes across as x-gzip instead of gzip. Therefore, it fails to extract the file since there is no case to support this.

What should happen: If i have a file named as artifact.tar.gz it should be able to extract that file as if it was a gzipped tarball.

Solution: Add a switch case for x-gzip to do the same thing as gzip. https://github.com/pivotal-cf/azure-blobstore-resource/blob/e7f086ccad6ffe1d7d586bfa595c738bd07968af/api/in.go#L47-L49