diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-02 03:05:19 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-06-02 03:05:19 +0000 |
commit | f9858ccaa9c829e75fe9751aa7809341e1054936 (patch) | |
tree | cff09f22eb8afe212c96ea0578aa82fad5ecd944 /app/src/main/java/ml/docilealligator/infinityforreddit | |
parent | 74f17d4db510bd1fe9ab5c3aff02f45e95184c81 (diff) | |
download | infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar.gz infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar.bz2 infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar.lz infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar.xz infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.tar.zst infinity-for-reddit-f9858ccaa9c829e75fe9751aa7809341e1054936.zip |
Temporary user agent.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java | 5 |
1 files changed, 3 insertions, 2 deletions
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<String, String> getOAuthHeader(String accessToken) { Map<String, String> 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; } |