mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 12:57:31 +02:00
Call prepare_payload in HTTP example
This commit is contained in:
@ -3,6 +3,7 @@ Version 71:
|
||||
* Fix extra ; warning
|
||||
* Documentation revision
|
||||
* Fix spurious on_chunk invocation
|
||||
* Call prepare_payload in HTTP example
|
||||
|
||||
WebSockets:
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user