axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rafa...@apache.org
Subject svn commit: r1751580 - /axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c
Date Wed, 06 Jul 2016 03:37:11 GMT
Author: rafaelb
Date: Wed Jul  6 03:37:11 2016
New Revision: 1751580

URL: http://svn.apache.org/viewvc?rev=1751580&view=rev
Log:
Fixed Bug: AXIS2C-1674. Simple HttpServer crashes when reading directories in Windows 2012
Server	

Modified:
    axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c

Modified: axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c?rev=1751580&r1=1751579&r2=1751580&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c (original)
+++ axis/axis2/c/core/trunk/src/core/transport/http/common/http_worker.c Wed Jul  6 03:37:11
2016
@@ -1915,6 +1915,9 @@ axis2_http_worker_set_response_headers(
                     axis2_char_t content_len_str[10];
                     axis2_http_header_t *content_len_hdr = NULL;
 
+					//Adds more 2 to http content length to involve CR and LF chars
+					content_length += 2;
+
                     sprintf(content_len_str, "%d", content_length);
                     content_len_hdr = axis2_http_header_create(env,
                         AXIS2_HTTP_HEADER_CONTENT_LENGTH, content_len_str);



Mime
View raw message