mirror of
https://github.com/matrix-construct/construct
synced 2025-03-16 22:41:46 +01:00
ircd::resource: Fix use after move.
This commit is contained in:
parent
0725db0431
commit
b389ae04e4
1 changed files with 4 additions and 4 deletions
|
@ -139,10 +139,10 @@ ircd::resource::resource(const string_view &path,
|
|||
resources, iit.first
|
||||
};
|
||||
}()}
|
||||
,default_method_head{[this, &opts]
|
||||
,default_method_head{[this]
|
||||
() -> std::unique_ptr<method>
|
||||
{
|
||||
if(opts.flags & flag::OVERRIDE_HEAD)
|
||||
if(this->opts->flags & flag::OVERRIDE_HEAD)
|
||||
return {};
|
||||
|
||||
auto handler
|
||||
|
@ -152,10 +152,10 @@ ircd::resource::resource(const string_view &path,
|
|||
|
||||
return std::make_unique<method>(*this, "HEAD", std::move(handler));
|
||||
}()}
|
||||
,default_method_options{[this, &opts]
|
||||
,default_method_options{[this]
|
||||
() -> std::unique_ptr<method>
|
||||
{
|
||||
if(opts.flags & flag::OVERRIDE_OPTIONS)
|
||||
if(this->opts->flags & flag::OVERRIDE_OPTIONS)
|
||||
return {};
|
||||
|
||||
auto handler
|
||||
|
|
Loading…
Add table
Reference in a new issue