Thu Dec  4 21:31:56 CET 2008  Juliusz Chroboczek <[EMAIL PROTECTED]>
  * Generate 416 errors correctly.
  Thanks to Ken Brazier.
diff -rN -u old-polipo/client.c new-polipo/client.c
--- old-polipo/client.c 2008-12-04 21:32:42.000000000 +0100
+++ new-polipo/client.c 2008-12-04 21:32:42.000000000 +0100
@@ -1703,7 +1703,8 @@
                       "HTTP/1.1 %d %s",
                       object->code, atomString(object->message));
     } else {
-        if(request->from > request->to) {
+        if((object->length >= 0 && request->from >= object->length) ||
+           request->from >= request->to) {
             unlockChunk(object, i);
             return httpClientRawError(connection, 416,
                                       internAtom("Requested range "

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to