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:
parent
fac4a286e7
commit
f8e798a0c1
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue