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.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_protocol.cc b/src/http_protocol.cc
index 7a7c68b..6d73502 100644
--- a/src/http_protocol.cc
+++ b/src/http_protocol.cc
@@ -432,8 +432,6 @@ 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());
@@ -533,6 +531,7 @@ public:
void full(void const* data, size_t size, AttributedText* text) override {
check_ptr(data, size);
+ text->reset();
text->append(resp_->proto());
text->append("/");
char tmp[50];
@@ -569,6 +568,7 @@ public:
void full(void const* data, size_t size, AttributedText* text) override {
check_ptr(data, size);
+ text->reset();
text->append(req_->method());
text->append(" ");
text->append(req_->url());