From 5c5dc0d61fdd86daefa58c964c9681decc649151 Mon Sep 17 00:00:00 2001 From: "Daniel A. Nagy" Date: Wed, 11 Feb 2015 23:03:12 +0100 Subject: [PATCH] Minor adjustments. --- bzz/httpaccess.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bzz/httpaccess.go b/bzz/httpaccess.go index 5443d19880..d4125517a6 100644 --- a/bzz/httpaccess.go +++ b/bzz/httpaccess.go @@ -152,7 +152,7 @@ func handler(w http.ResponseWriter, r *http.Request, dpa *DPA) { for _, entry := range manifestEntries { if !hashMatcher.MatchString(entry.Hash) { // hash is mandatory - break MANIFEST_ENTRIES + continue MANIFEST_ENTRIES } if entry.Content_type == "" { // content type defaults to manifest @@ -164,6 +164,7 @@ func handler(w http.ResponseWriter, r *http.Request, dpa *DPA) { } pathLen := len(entry.Path) if len(path) >= pathLen && path[:pathLen] == entry.Path && prefix <= pathLen { + dpaLogger.Debugf("Swarm: \"%s\" matches \"%s\".", path, entry.Path) prefix = pathLen key = ethutil.Hex2Bytes(entry.Hash) dpaLogger.Debugf("Swarm: Payload hash %064x", key)