All 2xx responses as success in Online Tracking

Any http response code 2xx indicates success.

Actually we should expect that server replies with "201 Created" after storing proposed data point.

Alleviates #4472
This commit is contained in:
Alexander Meshcheryakov 2017-09-24 21:08:45 +03:00 committed by GitHub
parent fac4a286e7
commit f8e798a0c1

View file

@ -193,7 +193,7 @@ public class LiveMonitoringHelper {
log.info("Monitor " + uri);
if (urlConnection.getResponseCode() != 200) {
if (urlConnection.getResponseCode()/100 != 2) {
String msg = urlConnection.getResponseCode() + " : " + //$NON-NLS-1$//$NON-NLS-2$
urlConnection.getResponseMessage();