mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 21:07:26 +02:00
committed by
Vinnie Falco
parent
31d2718eac
commit
73871cfb7f
@ -13,6 +13,7 @@ Version 86:
|
|||||||
* Tidy up Jamfile
|
* Tidy up Jamfile
|
||||||
* Normalize doc build scripts
|
* Normalize doc build scripts
|
||||||
* Use configured doxygen and xsltproc
|
* Use configured doxygen and xsltproc
|
||||||
|
* Fix Deferred Body Type Example Documentation
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -778,7 +778,7 @@ read_istream(
|
|||||||
|
|
||||||
//[example_http_defer_body
|
//[example_http_defer_body
|
||||||
|
|
||||||
/** Handle a form PUT request, choosing a body type depending on the Content-Type.
|
/** Handle a form POST request, choosing a body type depending on the Content-Type.
|
||||||
|
|
||||||
This reads a request from the input stream. If the method is POST, and
|
This reads a request from the input stream. If the method is POST, and
|
||||||
the Content-Type is "application/x-www-form-urlencoded " or
|
the Content-Type is "application/x-www-form-urlencoded " or
|
||||||
@ -825,7 +825,7 @@ do_form_request(
|
|||||||
// If this is not a form upload then use a string_body
|
// If this is not a form upload then use a string_body
|
||||||
if( req0.get()[field::content_type] != "application/x-www-form-urlencoded" &&
|
if( req0.get()[field::content_type] != "application/x-www-form-urlencoded" &&
|
||||||
req0.get()[field::content_type] != "multipart/form-data")
|
req0.get()[field::content_type] != "multipart/form-data")
|
||||||
goto do_string_body;
|
goto do_dynamic_body;
|
||||||
|
|
||||||
// Commit to string_body as the body type.
|
// Commit to string_body as the body type.
|
||||||
// As long as there are no body octets in the parser
|
// As long as there are no body octets in the parser
|
||||||
@ -841,7 +841,7 @@ do_form_request(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
do_string_body:
|
do_dynamic_body:
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
// Commit to dynamic_body as the body type.
|
// Commit to dynamic_body as the body type.
|
||||||
|
Reference in New Issue
Block a user