Browse Source

fix incorrect handling of required fields

master
Jørgen Lien Sellæg 9 years ago
parent
commit
0a96e2d789
  1. 2
      toREST/include/torrent.hpp

2
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);
}

Loading…
Cancel
Save