--- cups-1.2.7/cups/http.c.if-modified-since	2006-11-30 13:58:10.000000000 +0000
+++ cups-1.2.7/cups/http.c	2006-11-30 14:23:09.000000000 +0000
@@ -695,7 +695,12 @@
     */
 
     if (http->fields[HTTP_FIELD_CONTENT_LENGTH][0] == '\0')
-      http->data_remaining = 2147483647;
+    {
+      if (http->status == HTTP_NOT_MODIFIED)
+        http->data_remaining = 0;
+      else
+        http->data_remaining = 2147483647;
+    }
     else
       http->data_remaining = strtoll(http->fields[HTTP_FIELD_CONTENT_LENGTH],
                                      NULL, 10);
