axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject [axis-axis2-c-core] 04/09: Fixed a bug revealed in pre-release testing
Date Sat, 04 Apr 2020 15:06:40 GMT
This is an automated email from the ASF dual-hosted git repository.

billblough pushed a commit to branch 1.1.x
in repository https://gitbox.apache.org/repos/asf/axis-axis2-c-core.git

commit 9dafc9833bbba807e20223f8c736f3ea83bc62f2
Author: Don Samisa Abeysinghe <samisa@apache.org>
AuthorDate: Mon Sep 24 04:26:31 2007 +0000

    Fixed a bug revealed in pre-release testing
---
 src/core/transport/http/sender/http_sender.c | 39 ++++++++++++++--------------
 1 file changed, 19 insertions(+), 20 deletions(-)

diff --git a/src/core/transport/http/sender/http_sender.c b/src/core/transport/http/sender/http_sender.c
index 79417ad..03a48b4 100644
--- a/src/core/transport/http/sender/http_sender.c
+++ b/src/core/transport/http/sender/http_sender.c
@@ -442,28 +442,27 @@ axis2_http_sender_send(
 				content_type = 
                     (axis2_char_t *) axiom_output_get_content_type(sender->om_output,

                                                                    env);
-				if (AXIS2_TRUE !=  axis2_msg_ctx_get_is_soap_11(msg_ctx, env))
+				if (AXIS2_TRUE !=  axis2_msg_ctx_get_is_soap_11(msg_ctx, env) && 
+                    axutil_strcmp(soap_action, ""))
 				{
 					/* handle SOAP action for SOAP 1.2 case */
-					if (axutil_strcmp(soap_action, ""))
-					{
-						axis2_char_t *temp_content_type = NULL;
-						temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           ";action=\"");
-						content_type = temp_content_type;
-						temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           soap_action);
-						AXIS2_FREE(env->allocator, content_type);
-						content_type = temp_content_type;
-                        temp_content_type = axutil_stracat(env, 
-                                                           content_type, 
-                                                           "\"");
-					    AXIS2_FREE(env->allocator, content_type);
-					    content_type = temp_content_type;
-					}
-				}else
+                    axis2_char_t *temp_content_type = NULL;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       ";action=\"");
+                    content_type = temp_content_type;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       soap_action);
+                    AXIS2_FREE(env->allocator, content_type);
+                    content_type = temp_content_type;
+                    temp_content_type = axutil_stracat(env, 
+                                                       content_type, 
+                                                       "\"");
+                    AXIS2_FREE(env->allocator, content_type);
+                    content_type = temp_content_type;
+				}
+                else
 				{
 					content_type_deepl_copy = AXIS2_FALSE;
 				}


Mime
View raw message