From 1e377fa03bbd2cd19fb611305971c815cc888770 Mon Sep 17 00:00:00 2001 From: Ulf Adams Date: Tue, 11 Jun 2019 20:00:33 +0200 Subject: [PATCH] Fix typo in GoogleJwtClient (#1394) s/singed/signed/ --- .../src/main/java/com/example/app/GoogleJwtClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);