summaryrefslogtreecommitdiff
path: root/src/http_protocol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/http_protocol.cc')
-rw-r--r--src/http_protocol.cc2
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());