This patch for Apache adds support for disabling partial content
(a.k.a. Range request, 206) on per-request basis.

To disable partial content for given request put equivalent of:
SetEnv nopartialcontent 1
in your config (which can be done via SetEnvIf or mod_rewrite).

Author: Wejn <wejn(at)box(dot)cz>
TS: 20060723190000
Dedication: to all the fuckers from *.cn who constantly overload our servers

diff -urN apache_1.3.36/src/main/http_protocol.c apache_1.3.36.npc/src/main/http_protocol.c
--- apache_1.3.36/src/main/http_protocol.c  2006-04-21 20:40:11.000000000 +0200
+++ apache_1.3.36.npc/src/main/http_protocol.c  2006-07-23 18:41:53.000000000 +0200
@@ -245,7 +245,7 @@
     long length, start, end, one_start = 0, one_end = 0;
     int ranges, empty;

-    if (!r->clength || r->assbackwards)
+    if (!r->clength || r->assbackwards || ap_table_get(r->subprocess_env, "nopartialcontent"))
         return 0;

     /* Check for Range request-header (HTTP/1.1) or Request-Range for