Do correct check for the text/css content type
Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/6aebeeaf Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/6aebeeaf Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/6aebeeaf Branch: refs/heads/master Commit: 6aebeeafcd5ce582a5fc4db6a45a314a69ee4d73 Parents: 85622bc Author: Howard M. Lewis Ship <[email protected]> Authored: Wed Sep 3 14:02:11 2014 -0700 Committer: Howard M. Lewis Ship <[email protected]> Committed: Wed Sep 3 14:02:11 2014 -0700 ---------------------------------------------------------------------- .../apache/tapestry5/internal/services/assets/CSSURLRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/6aebeeaf/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/CSSURLRewriter.java ---------------------------------------------------------------------- diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/CSSURLRewriter.java b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/CSSURLRewriter.java index 042781f..1a60a10 100644 --- a/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/CSSURLRewriter.java +++ b/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/assets/CSSURLRewriter.java @@ -89,7 +89,7 @@ public class CSSURLRewriter extends DelegatingSRS { StreamableResource base = delegate.getStreamableResource(baseResource, processing, dependencies); - if (base.getContentType().equals("text/css")) + if (base.getContentType().equals(CSS_CONTENT_TYPE)) { return filter(base, baseResource); }
