From 2878b38b64f3f2fc53353e5b15f3ff3d6c3e4f36 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Sun, 2 Jul 2017 06:34:21 -0700 Subject: [PATCH] Call prepare_payload in HTTP example --- CHANGELOG.md | 1 + example/doc/http_examples.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74f41f68..10802c98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ Version 71: * Fix extra ; warning * Documentation revision * Fix spurious on_chunk invocation +* Call prepare_payload in HTTP example WebSockets: diff --git a/example/doc/http_examples.hpp b/example/doc/http_examples.hpp index 6ffe5e8f..a148e478 100644 --- a/example/doc/http_examples.hpp +++ b/example/doc/http_examples.hpp @@ -340,6 +340,7 @@ void do_server_head( res.result(status::bad_request); res.set(field::content_type, "text/plain"); res.body = "Invalid request-method '" + req.method_string().to_string() + "'"; + res.prepare_payload(); break; } }