randy 96/07/26 21:35:07
Modified: src http_protocol.c Log: set_content_length() needs to use the value passed in. Reviewed by: Brian Behlendorf, Alexei Kosut Submitted by: Paul Sutton <[EMAIL PROTECTED]> Revision Changes Path 1.29 +1 -1 apache/src/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apache/src/http_protocol.c,v retrieving revision 1.28 retrieving revision 1.29 diff -C3 -r1.28 -r1.29 *** http_protocol.c 1996/07/17 08:33:39 1.28 --- http_protocol.c 1996/07/27 04:35:05 1.29 *************** *** 151,157 **** { char ts[MAX_STRING_LEN]; ! sprintf (ts, "%ld", (long)r->finfo.st_size); table_set (r->headers_out, "Content-length", pstrdup (r->pool, ts)); return 0; } --- 151,157 ---- { char ts[MAX_STRING_LEN]; ! sprintf (ts, "%ld", clength); table_set (r->headers_out, "Content-length", pstrdup (r->pool, ts)); return 0; }