clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1460323 - /clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java
Date Sun, 24 Mar 2013 12:02:33 GMT
Author: reto
Date: Sun Mar 24 12:02:33 2013
New Revision: 1460323

URL: http://svn.apache.org/r1460323
Log:
CLEREZZA-758: consideing only type and subtype when looking up renderlet

Modified:
    clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java

Modified: clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java
URL: http://svn.apache.org/viewvc/clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java?rev=1460323&r1=1460322&r2=1460323&view=diff
==============================================================================
--- clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java
(original)
+++ clerezza/trunk/platform.typerendering/platform.typerendering.core/src/main/java/org/apache/clerezza/platform/typerendering/utils/MediaTypeMap.java
Sun Mar 24 12:02:33 2013
@@ -94,8 +94,9 @@ public class MediaTypeMap<T> {
             final String primaryType = mediaType.getType();
             if (!mediaType.isWildcardSubtype()) {
                 //exact media types
-                if (exactTypeEntries.containsKey(mediaType)) {
-                    resultList.addAll(exactTypeEntries.get(mediaType));
+                MediaType paramFreedMediaType = new MediaType(primaryType, mediaType.getSubtype());
+                if (exactTypeEntries.containsKey(paramFreedMediaType)) {
+                    resultList.addAll(exactTypeEntries.get(paramFreedMediaType));
                 }
             } else {
                 //primary  type and wildcard subtype



Mime
View raw message