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 su...@apache.org on 2003/12/11 14:53:05 UTC
cvs commit: ws-axis/c/src/server/apache mod_axis.c
susantha 2003/12/11 05:53:05
Modified: c/src/server/apache Tag: Release-2003_10_26-bugfixes_branch
mod_axis.c
Log:
improvements to send http headers
Revision Changes Path
No revision
No revision
1.16.2.2 +13 -3 ws-axis/c/src/server/apache/mod_axis.c
Index: mod_axis.c
===================================================================
RCS file: /home/cvs/ws-axis/c/src/server/apache/mod_axis.c,v
retrieving revision 1.16.2.1
retrieving revision 1.16.2.2
diff -u -r1.16.2.1 -r1.16.2.2
--- mod_axis.c 21 Nov 2003 13:01:11 -0000 1.16.2.1
+++ mod_axis.c 11 Dec 2003 13:53:05 -0000 1.16.2.2
@@ -25,8 +25,17 @@
/*Should dispatch the headers from within this method*/
int send_transport_information(Ax_soapstream* hdr)
{
- ap_send_http_header((request_rec*)hdr->str.op_stream);
- return 0;
+ int i;
+ Ax_header* pHeaders = hdr->so.http.op_headers;
+ if (pHeaders)
+ {
+ for (i=0; i<hdr->so.http.op_headercount; i++)
+ {
+ ap_table_set(((request_rec*)hdr->str.op_stream)->headers_out, pHeaders->headername, pHeaders->headervalue);
+ }
+ }
+ ap_send_http_header((request_rec*)hdr->str.op_stream);
+ return 0;
}
/*Call initialize_module() [of Packet.h] from within this method*/
@@ -129,7 +138,8 @@
return OK;
}
-
+ if (sstr->so.http.op_headers)
+ free(sstr->so.http.op_headers);
free(sstr);
/*free(arr);*/
return OK;