Index: openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl,v diff -u -N -r1.6 -r1.7 --- openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 2 Dec 2006 19:07:01 -0000 1.6 +++ openacs-4/packages/xotcl-core/tcl/bgdelivery-procs.tcl 12 Dec 2006 19:09:26 -0000 1.7 @@ -12,7 +12,10 @@ return } -if {[catch {ns_conn contentsentlength}]} { +# catch {ns_conn contentsentlength} alone does not work, since we do not have +# a connection yet, and the bgdelivery won't be activated +catch {ns_conn xxxxx} msg +if {![string match *contentsentlength* $msg]} { ns_log notice "AOLserver is not patched for bgdelivery, NOT loading bgdelivery" ad_proc -public ad_returnfile_background {statuscode mime_type filename} {