Commit 5072bbeb by Timothée Peignier

don't rewrite absolute urls

parent 95def764
...@@ -41,6 +41,8 @@ class Compressor(object): ...@@ -41,6 +41,8 @@ class Compressor(object):
for path in paths: for path in paths:
def reconstruct(match): def reconstruct(match):
asset_path = match.group(1) asset_path = match.group(1)
if asset_path.startswith("http") or asset_path.startswith("//"):
return "url(%s)" % asset_path
asset_url = urlparse.urljoin( asset_url = urlparse.urljoin(
settings.COMPRESS_URL, settings.COMPRESS_URL,
self.construct_asset_path(asset_path, path)[1:] self.construct_asset_path(asset_path, path)[1:]
......
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