From: Vlad S. <vl...@cr...> - 2007-02-23 01:25:26
|
The reason to use Ns_ConnUpdateHeaders which replaces the header, before it just added Stephen Deasey wrote: > On 2/19/07, Vlad Seryakov <ser...@us...> wrote: >> RCS file: /cvsroot/naviserver/naviserver/nsd/return.c,v >> retrieving revision 1.29 >> retrieving revision 1.30 >> diff -C2 -d -r1.29 -r1.30 >> *** return.c 24 Dec 2006 02:38:10 -0000 1.29 >> --- return.c 19 Feb 2007 20:17:40 -0000 1.30 >> *************** >> *** 567,573 **** >> { >> Conn *connPtr = (Conn *) conn; >> >> connPtr->responseLength = length; >> ! Ns_ConnPrintfHeaders(conn, "Content-Length", "%llu", length); >> } >> >> --- 567,575 ---- >> { >> Conn *connPtr = (Conn *) conn; >> + char strlength[16]; >> >> + sprintf(strlength, "%llu", length); >> connPtr->responseLength = length; >> ! Ns_ConnUpdateHeaders(conn, "Content-Length", strlength); >> } > > > Why this change? > > Did you find a bug? > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > naviserver-devel mailing list > nav...@li... > https://lists.sourceforge.net/lists/listinfo/naviserver-devel > -- Vlad Seryakov 571 262-8608 office vl...@cr... http://www.crystalballinc.com/vlad/ |