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 e6420b704..17fbb7110 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java @@ -47,6 +47,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executor; import java.util.function.Function; import java.util.stream.Collectors; +import javax.annotation.Nullable; import org.glassfish.jersey.server.ManagedAsync; import org.signal.libsignal.protocol.IdentityKey; import org.signal.libsignal.protocol.ServiceId; @@ -97,7 +98,6 @@ import org.whispersystems.websocket.auth.Mutable; import org.whispersystems.websocket.auth.ReadOnly; import software.amazon.awssdk.services.s3.S3Client; import software.amazon.awssdk.services.s3.model.DeleteObjectRequest; -import javax.annotation.Nullable; @SuppressWarnings("OptionalUsedAsFieldOrParameterType") @Path("/v1/profile") @@ -287,8 +287,7 @@ public class ProfileController { @HeaderParam(HeaderUtils.GROUP_SEND_TOKEN) Optional groupSendToken, @Context ContainerRequestContext containerRequestContext, @HeaderParam(HttpHeaders.USER_AGENT) String userAgent, - @PathParam("identifier") ServiceIdentifier identifier, - @QueryParam("ca") boolean useCaCertificate) + @PathParam("identifier") ServiceIdentifier identifier) throws RateLimitExceededException { final Optional maybeRequester = auth.map(AuthenticatedDevice::getAccount);