CPPSERV


Home Projects Jobs Clientele Contact

cppserv


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug fix for mod-cserv



The apr_table_do function requires filter. If no filter is needed, NULL should be passed at the end.
Attached patch fixes the problem

Y.
diff --git a/src/mod_cppserv/mod_cserv.cpp b/src/mod_cppserv/mod_cserv.cpp
index 07f41ad..7334683 100644
--- a/src/mod_cppserv/mod_cserv.cpp
+++ b/src/mod_cppserv/mod_cserv.cpp
@@ -102,7 +102,7 @@ static void sendRequestHeader(request_re
 	apr_size_t len=s.str().length();
 	apr_socket_send(con,s.str().c_str(),&len);
 	// TODO: Add some extra headers, if needed?
-	apr_table_do(writeHeader,&rec,r->headers_in);
+	apr_table_do(writeHeader,&rec,r->headers_in,NULL);
 	char endline='\n';
 	len=1;
 	apr_socket_send(con,&endline,&len);
@@ -139,7 +139,7 @@ static void logResponseHeaders(request_r
 	std::stringstream s;
 	whRec rec={r,0};
 	ap_log_rerror(APLOG_MARK,APLOG_ERR,APR_SUCCESS,r,"Response headers");
-	apr_table_do(logHeader,&rec,r->headers_out);
+	apr_table_do(logHeader,&rec,r->headers_out,NULL);
 	ap_log_rerror(APLOG_MARK,APLOG_ERR,APR_SUCCESS,r,"Status: %i",r->status);
 }
 

Authoright © Total Knowledge: 2001-2008