You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2005/11/24 05:53:06 UTC
svn commit: r348651 - in /webservices/axis2/trunk/java:
etc/project.properties
modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Author: chinthaka
Date: Wed Nov 23 20:52:50 2005
New Revision: 348651
URL: http://svn.apache.org/viewcvs?rev=348651&view=rev
Log:
Doing a small fix for REST handling.
Modified:
webservices/axis2/trunk/java/etc/project.properties
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
Modified: webservices/axis2/trunk/java/etc/project.properties
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/etc/project.properties?rev=348651&r1=348650&r2=348651&view=diff
==============================================================================
--- webservices/axis2/trunk/java/etc/project.properties (original)
+++ webservices/axis2/trunk/java/etc/project.properties Wed Nov 23 20:52:50 2005
@@ -18,7 +18,7 @@
# -------------------------------------------------------------------
# Project Information
# -------------------------------------------------------------------
-axis2_version=0.93-SNAPSHOT
+axis2_version=0.93-dev
# -------------------------------------------------------------------
# Dependency Repositories
@@ -64,7 +64,7 @@
# JUnit
# -------------------------------------------------------------------
maven.junit.jvmargs=-Djava.awt.headless=true
-maven.junit.fork=true
+maven.junit.fork=true
# -------------------------------------------------------------------
# Compile
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java?rev=348651&r1=348650&r2=348651&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java Wed Nov 23 20:52:50 2005
@@ -462,6 +462,12 @@
public static boolean isDoingREST(MessageContext msgContext) {
boolean enableREST = false;
+
+ // check whether isDoingRest is already true in the message context
+ if (msgContext.isDoingREST()) {
+ return true;
+ }
+
if (msgContext.getParameter(Constants.Configuration.ENABLE_REST)
!= null) {
enableREST =