From 0a96e2d789e66a37bd832fd66ebb7010e34918c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Tue, 16 May 2017 20:49:33 +0200 Subject: [PATCH] fix incorrect handling of required fields --- toREST/include/torrent.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }