Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -53,7 +53,7 @@ public class Api { | ... | @@ -53,7 +53,7 @@ public class Api { |
53 | conn.setRequestMethod(method); | 53 | conn.setRequestMethod(method); |
54 | 54 | ||
55 | if (accessToken != null) { | 55 | if (accessToken != null) { |
56 | - conn.setRequestProperty("access_token", accessToken); | 56 | + conn.setRequestProperty("Authorization", "Token " + accessToken); |
57 | } | 57 | } |
58 | 58 | ||
59 | if ("POST".equals(method) || "PUT".equals(method)) { | 59 | if ("POST".equals(method) || "PUT".equals(method)) { | ... | ... |
-
Please register or login to post a comment