abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r579345 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java
Date Tue, 25 Sep 2007 18:38:58 GMT
Author: jmsnell
Date: Tue Sep 25 11:38:57 2007
New Revision: 579345

URL: http://svn.apache.org/viewvc?rev=579345&view=rev
Log:
Fix for https://issues.apache.org/jira/browse/ABDERA-67.

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java?rev=579345&r1=579344&r2=579345&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/HttpServletRequestContext.java
Tue Sep 25 11:38:57 2007
@@ -29,12 +29,12 @@
 import javax.servlet.http.HttpSession;
 
 import org.apache.abdera.Abdera;
+import org.apache.abdera.i18n.iri.IRI;
 import org.apache.abdera.protocol.Resolver;
 import org.apache.abdera.protocol.server.RequestContext;
 import org.apache.abdera.protocol.server.ServiceContext;
 import org.apache.abdera.protocol.server.Target;
 import org.apache.abdera.util.Messages;
-import org.apache.abdera.i18n.iri.IRI;
 
 public class HttpServletRequestContext 
   extends AbstractRequestContext
@@ -148,8 +148,8 @@
   }
   
   public List<String> getParameters(String name) {
-    return java.util.Arrays.asList(
-      request.getParameterValues(name));
+    String[] values = request.getParameterValues(name);
+    return values != null ? java.util.Arrays.asList(values) : null;
   }
   
   public Date getDateHeader(String name) {



Mime
View raw message