[mirrorbrain-commits] r8042 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 23 Apr 2010 02:11:59 -0000
Author: poeml
Date: Fri Apr 23 04:11:59 2010
New Revision: 8042

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8042&view=rev
Log:
mod_mirrorbrain: 
- if data needed for a requested zsync are missing, reply with 404 Not Found.

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8042&r1=8041&r2=8042&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri Apr 23 04:11:59 2010
_at_@ -2744,8 +2744,7 @@
         if (!hashbag || !hashbag->sha1hex || (hashbag->zblocksize == 0) 
                 || !hashbag->zhashlens || !hashbag->zsumshex) {
             debugLog(r, cfg, "zsync requested, but required data is missing");
-            break;
-            /* FIXME: we should return a 404 here maybe, no? */
+            return HTTP_NOT_FOUND;
         }
     
         debugLog(r, cfg, "Sending zsync");




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Apr 23 2010 - 02:12:00 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT