diff --git a/core/src/main/groovy/com/muwire/core/connection/ConnectionAcceptor.groovy b/core/src/main/groovy/com/muwire/core/connection/ConnectionAcceptor.groovy index 25266649..720387ef 100644 --- a/core/src/main/groovy/com/muwire/core/connection/ConnectionAcceptor.groovy +++ b/core/src/main/groovy/com/muwire/core/connection/ConnectionAcceptor.groovy @@ -315,6 +315,9 @@ class ConnectionAcceptor { boolean chat = false if (headers.containsKey('Chat')) chat = Boolean.parseBoolean(headers['Chat']) + boolean feed = false + if (headers.containsKey('Feed')) + feed = Boolean.parseBoolean(headers['Feed']) byte [] personaBytes = Base64.decode(headers['Sender']) Persona sender = new Persona(new ByteArrayInputStream(personaBytes)) @@ -334,6 +337,7 @@ class ConnectionAcceptor { def json = slurper.parse(payload) results[i] = ResultsParser.parse(sender, resultsUUID, json) results[i].chat = chat + results[i].feed = feed } eventBus.publish(new UIResultBatchEvent(uuid: resultsUUID, results: results)) } catch (IOException bad) { diff --git a/core/src/main/groovy/com/muwire/core/search/UIResultEvent.groovy b/core/src/main/groovy/com/muwire/core/search/UIResultEvent.groovy index 4fad4f90..77ea0957 100644 --- a/core/src/main/groovy/com/muwire/core/search/UIResultEvent.groovy +++ b/core/src/main/groovy/com/muwire/core/search/UIResultEvent.groovy @@ -18,7 +18,8 @@ class UIResultEvent extends Event { boolean browse int certificates boolean chat - + boolean feed + @Override public String toString() { super.toString() + "name:$name size:$size sender:${sender.getHumanReadableName()} pieceSize $pieceSize"