From c91a5f0898a35871ce5f65cd08901f133ad5b2d2 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 7 Aug 2017 21:12:18 +0200 Subject: Protocol related fixes full() clears text so protocols that doesn't implement append() doesn't end up with repeats. precaching works now because of correct want calculation. if a package is updated while being active in a worker the package is requeud when done instead of forgotten --- src/http_protocol.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/http_protocol.cc') diff --git a/src/http_protocol.cc b/src/http_protocol.cc index 5915f77..7a7c68b 100644 --- a/src/http_protocol.cc +++ b/src/http_protocol.cc @@ -432,6 +432,8 @@ protected: } void full(void const* data, size_t size, AttributedText* text) override { + text->reset(); + auto iter = http_->header(); while (iter->valid()) { text->append(iter->name()); -- cgit v1.2.3-70-g09d2