@@ -34,54 +34,54 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
3434// ----------------------------------------------------------------------------
3535
3636void protocol_html::handle_receive_get (const code& ec,
37- const method::get& request ) NOEXCEPT
37+ const method::get::cptr& get ) NOEXCEPT
3838{
3939 BC_ASSERT (stranded ());
4040
4141 if (stopped (ec))
4242 return ;
4343
4444 // Enforce http origin form for get.
45- if (!is_origin_form (request ->target ()))
45+ if (!is_origin_form (get ->target ()))
4646 {
47- send_bad_target (*request );
47+ send_bad_target (*get );
4848 return ;
4949 }
5050
5151 // Enforce http origin policy (if any origins are configured).
52- if (!is_allowed_origin (*request, request ->version ()))
52+ if (!is_allowed_origin (*get, get ->version ()))
5353 {
54- send_forbidden (*request );
54+ send_forbidden (*get );
5555 return ;
5656 }
5757
5858 // Enforce http host header (if any hosts are configured).
59- if (!is_allowed_host (*request, request ->version ()))
59+ if (!is_allowed_host (*get, get ->version ()))
6060 {
61- send_bad_host (*request );
61+ send_bad_host (*get );
6262 return ;
6363 }
6464
6565 // Always try API dispatch, false if unhandled.
66- if (try_dispatch_object (*request ))
66+ if (try_dispatch_object (*get ))
6767 return ;
6868
6969 // Require file system dispatch if path is configured (always handles).
7070 if (!options_.path .empty ())
7171 {
72- dispatch_file (*request );
72+ dispatch_file (*get );
7373 return ;
7474 }
7575
7676 // Require embedded dispatch if site is configured (always handles).
7777 if (options_.pages .enabled ())
7878 {
79- dispatch_embedded (*request );
79+ dispatch_embedded (*get );
8080 return ;
8181 }
8282
8383 // Neither site is enabled and object dispatch doesn't support.
84- send_not_implemented (*request );
84+ send_not_implemented (*get );
8585}
8686
8787// Dispatch.
0 commit comments