From: gustafn <gne...@us...> - 2011-07-16 09:25:33
|
Update of /cvsroot/aolserver/aolserver/nsd In directory vz-cvs-4.sog:/tmp/cvs-serv14196 Modified Files: op.c tclcmds.c tclresp.c Log Message: - added support for redirect, when upload file is too large (many thanks to Brian Fenton) Index: tclcmds.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nsd/tclcmds.c,v retrieving revision 1.57 retrieving revision 1.58 diff -C2 -d -r1.57 -r1.58 *** tclcmds.c 8 Dec 2009 04:12:19 -0000 1.57 --- tclcmds.c 16 Jul 2011 09:25:30 -0000 1.58 *************** *** 149,152 **** --- 149,153 ---- NsTclReturnObjCmd, NsTclReturnRedirectObjCmd, + NsTclReturnTooLargeObjCmd, NsTclReturnUnauthorizedObjCmd, NsTclRmdirObjCmd, Index: op.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nsd/op.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** op.c 9 Jul 2011 10:06:46 -0000 1.16 --- op.c 16 Jul 2011 09:25:29 -0000 1.17 *************** *** 235,238 **** --- 235,239 ---- if (connPtr->flags & NS_CONN_ENTITYTOOLARGE) { + connPtr->flags &= ~NS_CONN_ENTITYTOOLARGE; return Ns_ConnReturnEntityTooLarge(conn); } Index: tclresp.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nsd/tclresp.c,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** tclresp.c 22 Jan 2007 03:23:15 -0000 1.21 --- tclresp.c 16 Jul 2011 09:25:30 -0000 1.22 *************** *** 445,453 **** * ReturnObjCmd -- * NsTclReturnNotFoundObjCmd -- * NsTclReturnUnauthorizedObjCmd -- * NsTclReturnForbiddenCmd -- * ! * Implement the ns_returnnotfound, ns_returnunauthorized, and ! * ns_returnforbidden generic return commands. * * Results: --- 445,455 ---- * ReturnObjCmd -- * NsTclReturnNotFoundObjCmd -- + * NsTclReturnTooLargeObjCmd -- * NsTclReturnUnauthorizedObjCmd -- * NsTclReturnForbiddenCmd -- * ! * Implement the ns_returnnotfound, ns_returntoolarge, ! * ns_returnunauthorized, and ns_returnforbidden generic return ! * commands. * * Results: *************** *** 487,490 **** --- 489,500 ---- int + NsTclReturnTooLargeObjCmd(ClientData arg, Tcl_Interp *interp, int objc, + Tcl_Obj *CONST objv[]) + { + return ReturnObjCmd(arg, interp, objc, objv, Ns_ConnReturnEntityTooLarge); + } + + + int NsTclReturnUnauthorizedObjCmd(ClientData arg, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) |