abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r438697 - /incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
Date Wed, 30 Aug 2006 22:57:27 GMT
Author: jmsnell
Date: Wed Aug 30 15:57:27 2006
New Revision: 438697

URL: http://svn.apache.org/viewvc?rev=438697&view=rev
Log:
Check for null/empty input

Modified:
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java

Modified: incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java?rev=438697&r1=438696&r2=438697&view=diff
==============================================================================
--- incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
(original)
+++ incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlUtil.java
Wed Aug 30 15:57:27 2006
@@ -49,6 +49,7 @@
   public static void parseCacheControl(
     String cc, 
     AbstractRequest request) {
+      if (cc == null || cc.length() == 0) return;
       CacheControlParser parser = new CacheControlParser(cc);
       request.setNoCache(false);
       request.setNoStore(false);



Mime
View raw message