From e3778c17ea278c980bbf5eb045255e3c3a653969 Mon Sep 17 00:00:00 2001 From: Ehren Kret Date: Fri, 17 Jun 2022 14:29:48 -0500 Subject: [PATCH] Use POST not GET for request requiring body --- .../textsecuregcm/controllers/ProfileController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java index 7bb76e885..9d15f26f8 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java @@ -44,6 +44,7 @@ import javax.ws.rs.GET; import javax.ws.rs.HeaderParam; import javax.ws.rs.NotAuthorizedException; import javax.ws.rs.NotFoundException; +import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; @@ -323,7 +324,8 @@ public class ProfileController { } @Timed - @GET + @POST + @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("/identity_check/batch") public CompletableFuture runBatchIdentityCheck(BatchIdentityCheckRequest request) {