1999-07-04
1999-07-04 18:39:12 by David Hedbor <david@hedbor.org>
-
30f0320a1a16fa74e1267055b6c266776ed4eb27
(14 lines)
(+5/-9)
[
Show
| Annotate
]
Branch: 5.2
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.