Skip to content

Commit 09b5898

Browse files
committed
[FOLD]
1 parent 8d2ae03 commit 09b5898

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

include/boost/http_proto/server/basic_router.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ class basic_router : public /*detail::*/any_router
555555
556556
@par Example
557557
@code
558-
app.except( "/api/*",
558+
app.except( "/api*",
559559
[]( route_params& p, std::exception const& ex )
560560
{
561561
p.res.set_status( 500 );

include/boost/http_proto/server/route_handler.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ post(F&& f) -> route_result
198198
, public detacher::owner
199199
{
200200
public:
201-
model(route_params& req,
201+
model(route_params& p,
202202
F&& f, resumer resume)
203-
: req_(req)
203+
: p_(p)
204204
, f_(std::forward<F>(f))
205205
, resume_(resume)
206206
{
@@ -219,12 +219,12 @@ post(F&& f) -> route_result
219219
{
220220
resumed_ = true;
221221
resumer resume(resume_);
222-
req_.task_.reset(); // destroys *this
222+
p_.task_.reset(); // destroys *this
223223
resume(rv);
224224
}
225225

226226
private:
227-
route_params& req_;
227+
route_params& p_;
228228
typename std::decay<F>::type f_;
229229
resumer resume_;
230230
bool resumed_;

0 commit comments

Comments
 (0)