Fix typo and spelling
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Thu, 25 Aug 2016 08:41:54 +0000 (10:41 +0200)
committerLucas Werkmeister <mail@lucaswerkmeister.de>
Thu, 25 Aug 2016 08:41:54 +0000 (10:41 +0200)
Change-Id: Ideaf2432c758a66c945b4510b34885b23fc22dc7

src/org/cacert/gigi/ping/HTTPFetch.java

index a5755844a47636bc24396d7dd64af392f2772f75..f6b5c3e56f279cc9d1d1300fe93fdea6cfe551fe 100644 (file)
@@ -18,7 +18,7 @@ public class HTTPFetch extends DomainPinger {
             URL u = new URL("http://" + domain.getSuffix() + "/cacert-" + tokenParts[0] + ".txt");
             HttpURLConnection huc = (HttpURLConnection) u.openConnection();
             if (huc.getResponseCode() != 200) {
-                enterPingResult(confId, "error", "Invaild status code " + huc.getResponseCode() + ".", null);
+                enterPingResult(confId, "error", "Invalid status code " + huc.getResponseCode() + ".", null);
                 return;
             }
             BufferedReader br = new BufferedReader(new InputStreamReader(huc.getInputStream(), "UTF-8"));
@@ -31,7 +31,7 @@ public class HTTPFetch extends DomainPinger {
                 enterPingResult(confId, PING_SUCCEDED, "", null);
                 return;
             }
-            enterPingResult(confId, "error", "Challange tokens differed.", null);
+            enterPingResult(confId, "error", "Challenge tokens differed.", null);
             return;
         } catch (IOException e) {
             e.printStackTrace();