From f9858ccaa9c829e75fe9751aa7809341e1054936 Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 1 Jun 2024 23:05:19 -0400 Subject: Temporary user agent. --- .../java/ml/docilealligator/infinityforreddit/utils/APIUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/ml') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java index 4a87af1c..cb90fdc7 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java @@ -46,7 +46,8 @@ public class APIUtils { public static final String AUTHORIZATION_KEY = "Authorization"; public static final String AUTHORIZATION_BASE = "bearer "; public static final String USER_AGENT_KEY = "User-Agent"; - public static final String USER_AGENT = "android:ml.docilealligator.infinityforreddit:v7.2.0-beta1 (by /u/Hostilenemy)"; + //public static final String USER_AGENT = "android:ml.docilealligator.infinityforreddit:v7.2.0-beta1 (by /u/Hostilenemy)"; + public static final String USER_AGENT = "mobile:ml.docilealligator.infinityforreddit:v7.2.0-beta1 (by /u/Hostilenemy)"; public static final String GRANT_TYPE_KEY = "grant_type"; public static final String GRANT_TYPE_REFRESH_TOKEN = "refresh_token"; @@ -123,7 +124,7 @@ public class APIUtils { public static Map getOAuthHeader(String accessToken) { Map params = new HashMap<>(); params.put(APIUtils.AUTHORIZATION_KEY, APIUtils.AUTHORIZATION_BASE + accessToken); - //params.put(APIUtils.USER_AGENT_KEY, APIUtils.USER_AGENT); + params.put(APIUtils.USER_AGENT_KEY, APIUtils.USER_AGENT); return params; } -- cgit v1.2.3