Branch: Tag:

1999-07-04

1999-07-04 18:39:12 by David Hedbor <david@hedbor.org>

removed redundant code

Rev: server/protocols/http.pike:1.140

6: Inside #if defined(MAGIC_ERROR)
  #ifdef MAGIC_ERROR   inherit "highlight_pike";   #endif - constant cvs_version = "$Id: http.pike,v 1.139 1999/07/04 18:32:20 neotron Exp $"; + constant cvs_version = "$Id: http.pike,v 1.140 1999/07/04 18:39:12 neotron Exp $";   // HTTP protocol module.   #include <config.h>   private inherit "roxenlib";
1151:    num_bytes = 0;    }    } -  if(strlen(out) > total) -  { -  // Oops. too much data. Send amount asked for and save -  // the rest. -  stored_data = out[total..]; -  return out[..total-1]; +  if(num_bytes <= 0) +  break; // Return data    } -  } +     if(!sizeof(ranges) && separator != 2) {    // End boundary. Only write once and only when    // no more ranges remain.