Commit c360a2ad by Timothée Peignier

Return gzip urls.

parent 077550b5
...@@ -79,6 +79,12 @@ class GZIPMixin(object): ...@@ -79,6 +79,12 @@ class GZIPMixin(object):
gzipped_path = self.save(gzipped_path, gzipped_file) gzipped_path = self.save(gzipped_path, gzipped_file)
yield gzipped_path, gzipped_path, True yield gzipped_path, gzipped_path, True
def url(self, name, force=False):
url = super(GZIPMixin, self).url(name, force)
if matches_patterns(name, self.gzip_patterns):
return "{0}.gz".format(url)
return url
class NonPackagingMixin(object): class NonPackagingMixin(object):
packing = False packing = False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment