REST Update Settings API should not take timeout and master_timeout as index parameters

closes #4692
This commit is contained in:
Shay Banon 2014-01-11 02:05:12 +01:00
parent b7ad04a531
commit a500ba752e
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public class RestUpdateSettingsAction extends BaseRestHandler {
} }
} }
for (Map.Entry<String, String> entry : request.params().entrySet()) { for (Map.Entry<String, String> entry : request.params().entrySet()) {
if (entry.getKey().equals("pretty")) { if (entry.getKey().equals("pretty") || entry.getKey().equals("timeout") || entry.getKey().equals("master_timeout")) {
continue; continue;
} }
updateSettings.put(entry.getKey(), entry.getValue()); updateSettings.put(entry.getKey(), entry.getValue());