diff --git a/toREST/include/torrent.hpp b/toREST/include/torrent.hpp index 80e409a..6b6c979 100644 --- a/toREST/include/torrent.hpp +++ b/toREST/include/torrent.hpp @@ -142,7 +142,7 @@ void patch(torrent_session &session, response resp, request req) { torrent.set_download_limit(down_limit); } - if (down_limit_field || up_limit_field || paused_field) { + if (!down_limit_field && !up_limit_field && !paused_field) { return respond(http::bad_request); }