From d8cb3324a95980e7b4f7a16af37b312f3f09b048 Mon Sep 17 00:00:00 2001 From: theli Date: Thu, 16 Jun 2005 11:22:20 +0000 Subject: [PATCH] *) property "mytime" was not set correctly git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@285 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/query.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htroot/yacy/query.java b/htroot/yacy/query.java index b385539a4..a1820044a 100644 --- a/htroot/yacy/query.java +++ b/htroot/yacy/query.java @@ -67,7 +67,9 @@ public class query { String key = (String) post.get("key", ""); // transmission key for response String obj = (String) post.get("object", ""); // keyword for query subject String env = (String) post.get("env", ""); // argument to query - + + prop.put("mytime", yacyCore.universalDateShortString()); + // check if we are the right target and requester has correct information about this peer if ((yacyCore.seedDB.mySeed == null) || (!(yacyCore.seedDB.mySeed.hash.equals(youare)))) { // this request has a wrong target @@ -141,7 +143,7 @@ public class query { return prop; } - prop.put("mytime", yacyCore.universalDateShortString()); + // return rewrite properties return prop; }