Branch: Tag:

2001-06-06

2001-06-06 22:11:00 by Per Hedbor <ph@opera.com>

Fixed [Bug 1691 (#1691)]

Rev: server/protocols/http.pike:1.315

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.314 2001/05/11 15:49:31 jonasw Exp $"; + constant cvs_version = "$Id: http.pike,v 1.315 2001/06/06 22:11:00 per Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
1717:    prot, file->error,    file->rettext ||errors[file->error]||"");    -  if( file->len > 0 || (file->error != 200) ) + // if( file->len > 0 || (file->error != 200) )    heads["Content-Length"] = (string)file->len;       // Some browsers, e.g. Netscape 4.7, doesn't trust a zero    // content length when using keep-alive. So let's force a    // close in that case. -  if( file->error/100 == 2 -  && file->len <= 0 ) +  if( file->error/100 == 2 && file->len <= 0 )    {    heads->Connection = "close";    misc->connection = "close";