diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-08-07 21:20:47 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-08-07 21:21:19 +0200 |
| commit | d127f4381fcea62e1f7f2fbd195ae7dc058500e8 (patch) | |
| tree | 11182249e07f845f0a1f27b32ef6cecc09e58959 | |
| parent | c91a5f0898a35871ce5f65cd08901f133ad5b2d2 (diff) | |
fixup! Protocol related fixes
Reset before writing request/response statusline
| -rw-r--r-- | src/http_protocol.cc | 4 |
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()); |
