diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-08-07 21:12:18 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-08-07 21:14:39 +0200 |
| commit | c91a5f0898a35871ce5f65cd08901f133ad5b2d2 (patch) | |
| tree | f5ca26c035054f2892e61abee1e16fe772be4685 /src/http_protocol.cc | |
| parent | 2339e7f5e0c048a82782556ee240d74c2ba788db (diff) | |
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
Diffstat (limited to 'src/http_protocol.cc')
| -rw-r--r-- | src/http_protocol.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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()); |
