Author: dkatayev
Date: 2009-10-30 12:21:38 -0400 (Fri, 30 Oct 2009)
New Revision: 458
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/GetCommand.java
Log:
EXOJCR-178 bug with an empty content type fixed.
Modified:
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/GetCommand.java
===================================================================
---
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/GetCommand.java 2009-10-30
15:05:37 UTC (rev 457)
+++
jcr/trunk/exo.jcr.component.webdav/src/main/java/org/exoplatform/services/jcr/webdav/command/GetCommand.java 2009-10-30
16:21:38 UTC (rev 458)
@@ -273,8 +273,12 @@
ArrayList<MediaType> mediaTypesList = new
ArrayList<MediaType>(cacheControlMap.keySet());
Collections.sort(mediaTypesList, MediaTypeHelper.MEDIA_TYPE_COMPARATOR);
- String cacheControlValue = "";
+ String cacheControlValue = "no-cache";
+ if(contentType == null || contentType.equals("")){
+ return cacheControlValue;
+ }
+
for (MediaType mediaType : mediaTypesList)
{
if(contentType.equals(MediaType.WILDCARD)){
Show replies by date