mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +01:00
ircd::resource: Minor cleanup.
This commit is contained in:
parent
3278324db0
commit
f48ec4a6a4
1 changed files with 2 additions and 2 deletions
|
@ -358,8 +358,8 @@ ircd::resource::operator()(client &client,
|
|||
const auto &supplied(split(ct.first, '/'));
|
||||
const auto &charset(ct.second);
|
||||
const auto &required(method.opts.mime);
|
||||
if(required.first != supplied.first ||
|
||||
(required.second && required.second != supplied.second))
|
||||
if(required.first != supplied.first
|
||||
||(required.second && required.second != supplied.second))
|
||||
throw http::error
|
||||
{
|
||||
http::UNSUPPORTED_MEDIA_TYPE
|
||||
|
|
Loading…
Reference in a new issue