You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/04/24 08:10:36 UTC
svn commit: r396448 -
/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
Author: sahan
Date: Sun Apr 23 23:10:34 2006
New Revision: 396448
URL: http://svn.apache.org/viewcvs?rev=396448&view=rev
Log:
fixing AXIS2C-134 and AXIS2C-135
Modified:
webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
Modified: webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c?rev=396448&r1=396447&r2=396448&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/receiver/simple_http_svr_conn.c Sun Apr 23 23:10:34 2006
@@ -294,6 +294,21 @@
break;
}
}
+ if(NULL != str_line)
+ {
+ if(0 != AXIS2_STRNCASECMP(str_line, "GET", 3) && 0 !=
+ AXIS2_STRNCASECMP(str_line, "POST", 4))
+ {
+ char write_buf[512];
+ sprintf(write_buf, "%s %s\r\n%s: close\r\n\r\n",
+ AXIS2_HTTP_HEADER_PROTOCOL_11,
+ AXIS2_HTTP_RESPONSE_BAD_REQUEST,
+ AXIS2_HTTP_HEADER_CONNECTION);
+ AXIS2_STREAM_WRITE(svr_conn_impl->stream, env, write_buf,
+ AXIS2_STRLEN(write_buf) + 1);
+ return NULL;
+ }
+ }
request_line = axis2_http_request_line_parse_line(env, str_line);
if(NULL == request_line)
{