Skip to content

Commit c360a2a

Browse files
committed
Return gzip urls.
1 parent 077550b commit c360a2a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pipeline/storage.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ def post_process(self, paths, dry_run=False, **options):
7979
gzipped_path = self.save(gzipped_path, gzipped_file)
8080
yield gzipped_path, gzipped_path, True
8181

82+
def url(self, name, force=False):
83+
url = super(GZIPMixin, self).url(name, force)
84+
if matches_patterns(name, self.gzip_patterns):
85+
return "{0}.gz".format(url)
86+
return url
87+
8288

8389
class NonPackagingMixin(object):
8490
packing = False

0 commit comments

Comments
 (0)