From e7a21752d888ee20fc4d4eb5af444d949e16d81f Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Sat, 12 Oct 2013 09:46:20 -0700 Subject: [PATCH] Switch code API to GET. --- .../whispersystems/textsecure/push/PushServiceSocket.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java b/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java index 6f878ef9f1..a2131cb234 100644 --- a/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java +++ b/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java @@ -36,8 +36,8 @@ import java.util.Set; public class PushServiceSocket { - private static final String CREATE_ACCOUNT_SMS_PATH = "/v1/accounts/sms/%s"; - private static final String CREATE_ACCOUNT_VOICE_PATH = "/v1/accounts/voice/%s"; + private static final String CREATE_ACCOUNT_SMS_PATH = "/v1/accounts/sms/code/%s"; + private static final String CREATE_ACCOUNT_VOICE_PATH = "/v1/accounts/voice/code/%s"; private static final String VERIFY_ACCOUNT_PATH = "/v1/accounts/code/%s"; private static final String REGISTER_GCM_PATH = "/v1/accounts/gcm/"; private static final String PREKEY_PATH = "/v1/keys/%s"; @@ -61,7 +61,7 @@ public class PushServiceSocket { public void createAccount(boolean voice) throws IOException { String path = voice ? CREATE_ACCOUNT_VOICE_PATH : CREATE_ACCOUNT_SMS_PATH; - makeRequest(String.format(path, localNumber), "POST", null); + makeRequest(String.format(path, localNumber), "GET", null); } public void verifyAccount(String verificationCode, String signalingKey) throws IOException {