cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r534391 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java
Date Wed, 02 May 2007 11:37:56 GMT
Author: gkossakowski
Date: Wed May  2 04:37:51 2007
New Revision: 534391

URL: http://svn.apache.org/viewvc?view=rev&rev=534391
Log:
Fixing check for HTTP request method.

Modified:
    cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java?view=diff&rev=534391&r1=534390&r2=534391
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceConsumerSourceFactory.java
Wed May  2 04:37:51 2007
@@ -32,7 +32,8 @@
 
 	public Source getSource(String location, Map parameters) throws IOException, MalformedURLException
{
 		HttpServletRequest request = processInfoProvider.getRequest();
-		if (!"POST".equals(request)) throw new MalformedURLException("Cannot create consumer source
for request that is not POST.");
+		if (!"POST".equals(request.getMethod()))
+			throw new MalformedURLException("Cannot create consumer source for request that is not
POST.");
 		return new ServletServiceConsumerSource(request);
 	}
 



Mime
View raw message