0
0
Fork 0
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:
Jason Volk 2018-08-22 15:17:55 -07:00
parent 3278324db0
commit f48ec4a6a4

View file

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