# | Line 48 | Line 48 | public class HTTP__ServiceCheck implements PluginServi | |
---|---|---|
48 | connection.setRequestProperty("User-Agent", "i-scream HTTP Service Checker v" + REVISION.substring(11, REVISION.length() - 2)); | |
49 | // connect and do the request | |
50 | connection.connect(); | |
51 | < | status += connection.getResponseCode(); |
51 | > | if (connection.getResponseCode() != 200 ) { |
52 | > | status += "0"; |
53 | > | } else { |
54 | > | status += "1"; |
55 | > | } |
56 | message = connection.getResponseMessage(); | |
57 | connection.disconnect(); | |
58 | } catch (Exception e) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |