From: Stephen D. <sd...@us...> - 2005-06-30 23:25:08
|
Update of /cvsroot/naviserver/naviserver/nsd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32052/nsd Modified Files: cookies.c Log Message: No longer check whether the response headers have already been sent for Tcl commands. The check was broken and not useful. Index: cookies.c =================================================================== RCS file: /cvsroot/naviserver/naviserver/nsd/cookies.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cookies.c 10 Jun 2005 17:58:38 -0000 1.2 --- cookies.c 30 Jun 2005 23:24:59 -0000 1.3 *************** *** 335,343 **** * GetConn -- * ! * Get the conn and make sure the headers have not already ! * been sent. * * Results: ! * Ns_Conn pointer or NULL on error. * * Side effects: --- 335,343 ---- * GetConn -- * ! * Return the conn for the given interp, logging an error if ! * not available. * * Results: ! * Ns_Conn pointer or NULL. * * Side effects: *************** *** 350,360 **** GetConn(Tcl_Interp *interp) { ! Ns_Conn *conn = Ns_TclGetConn(interp); if (conn == NULL) { Tcl_SetResult(interp, "No connection available.", TCL_STATIC); - } else if (conn->flags & NS_CONN_SENTHDRS) { - Tcl_SetResult(interp, "Cannot set cookie, " - "reponse headers already sent to user-agent.", TCL_STATIC); } --- 350,358 ---- GetConn(Tcl_Interp *interp) { ! Ns_Conn *conn; + conn = Ns_TclGetConn(interp); if (conn == NULL) { Tcl_SetResult(interp, "No connection available.", TCL_STATIC); } |