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).

(this is just adaptation of the old 1.3.X version of the patch:
http://wejn.org/stuff/apache-partial-content-new.diff.html )

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

--- httpd-2.0.58/modules/http/http_protocol.c.orig  2007-02-16 11:45:40.000000000 +0100
+++ httpd-2.0.58/modules/http/http_protocol.c   2007-02-16 11:45:42.000000000 +0100
@@ -3142,7 +3142,7 @@
     const char *ct;
     int num_ranges;
 
-    if (r->assbackwards) {
+    if (r->assbackwards || apr_table_get(r->subprocess_env, "nopartialcontent")) {
         return 0;
     }