a quick test of the patch didn't work to me. An .rvt file is passed
verbatim to the client. I enabled the debug message you had
introduced and then commented out.
fprintf(stderr, "content_type: %s\n", req->content_type);
fflush(stderr);
in apache2/error.log the server keeps printing
content_type: (null)
rivet.conf in /etc/apache2/mods-available/ is
<IfModule mod_rivet.c>
AddType application/x-httpd-rivet .rvt
AddType application/x-rivet-tcl .tcl
RivetServerConf ChildInitScript "source
/home/manghi/www/webdev/childinit.tcl"
RivetServerConf ChildExitScript "source
/home/manghi/www/webdev/childexit.tcl"
</IfModule>
-- Massimo
Valery Masiutsin wrote:
Hello, guys !
Updated version of patch.
1.Added one more check inside the Rivet_CheckType function
(When file does not exist req->content_type is NULL, well at least i hope so,
we have to check for NULL, before trying to do dereference).
2.Corrected file existence check in Rivet_SendContent
Regards Valery.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]