diff --git a/endpoints/getting-started/clients/src/main/java/com/example/app/GoogleJwtClient.java b/endpoints/getting-started/clients/src/main/java/com/example/app/GoogleJwtClient.java index 53ad742c8f7..7be1ea62808 100644 --- a/endpoints/getting-started/clients/src/main/java/com/example/app/GoogleJwtClient.java +++ b/endpoints/getting-started/clients/src/main/java/com/example/app/GoogleJwtClient.java @@ -81,13 +81,13 @@ public static String generateJwt(final String saKeyfile, final String saEmail, /** * Makes an authorized request to the endpoint. */ - public static String makeJwtRequest(final String singedJwt, final URL url) + public static String makeJwtRequest(final String signedJwt, final URL url) throws IOException, ProtocolException { HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setRequestMethod("GET"); con.setRequestProperty("Content-Type", "application/json"); - con.setRequestProperty("Authorization", "Bearer " + singedJwt); + con.setRequestProperty("Authorization", "Bearer " + signedJwt); InputStreamReader reader = new InputStreamReader(con.getInputStream()); BufferedReader buffReader = new BufferedReader(reader);