Skip to content

Commit 1e377fa

Browse files
ulfjackaverikitsch
authored andcommitted
Fix typo in GoogleJwtClient (#1394)
s/singed/signed/
1 parent 0b7a23c commit 1e377fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

endpoints/getting-started/clients/src/main/java/com/example/app/GoogleJwtClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ public static String generateJwt(final String saKeyfile, final String saEmail,
8181
/**
8282
* Makes an authorized request to the endpoint.
8383
*/
84-
public static String makeJwtRequest(final String singedJwt, final URL url)
84+
public static String makeJwtRequest(final String signedJwt, final URL url)
8585
throws IOException, ProtocolException {
8686

8787
HttpURLConnection con = (HttpURLConnection) url.openConnection();
8888
con.setRequestMethod("GET");
8989
con.setRequestProperty("Content-Type", "application/json");
90-
con.setRequestProperty("Authorization", "Bearer " + singedJwt);
90+
con.setRequestProperty("Authorization", "Bearer " + signedJwt);
9191

9292
InputStreamReader reader = new InputStreamReader(con.getInputStream());
9393
BufferedReader buffReader = new BufferedReader(reader);

0 commit comments

Comments
 (0)