0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-11 06:28:55 +02:00

ircd::resource: Fix use after move.

This commit is contained in:
Jason Volk 2022-07-13 18:14:19 -07:00
parent 0725db0431
commit b389ae04e4

View file

@ -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