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
|
* Fix extra ; warning
|
||||||
* Documentation revision
|
* Documentation revision
|
||||||
* Fix spurious on_chunk invocation
|
* Fix spurious on_chunk invocation
|
||||||
|
* Call prepare_payload in HTTP example
|
||||||
|
|
||||||
WebSockets:
|
WebSockets:
|
||||||
|
|
||||||
|
@ -340,6 +340,7 @@ void do_server_head(
|
|||||||
res.result(status::bad_request);
|
res.result(status::bad_request);
|
||||||
res.set(field::content_type, "text/plain");
|
res.set(field::content_type, "text/plain");
|
||||||
res.body = "Invalid request-method '" + req.method_string().to_string() + "'";
|
res.body = "Invalid request-method '" + req.method_string().to_string() + "'";
|
||||||
|
res.prepare_payload();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user