fix silly beginner mistake
This commit is contained in:
parent
8376a1c3fd
commit
d627bb7edb
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ public class OlatLmsRestTemplate extends RestTemplate {
|
||||||
// if there's no token, authenticate first
|
// if there's no token, authenticate first
|
||||||
if (token == null) { authenticate(); }
|
if (token == null) { authenticate(); }
|
||||||
// when authenticating, just do a normal call
|
// when authenticating, just do a normal call
|
||||||
else if (token == "authenticating") { return execution.execute(request, body); }
|
else if (token.equals("authenticating")) { return execution.execute(request, body); }
|
||||||
// otherwise, add the X-OLAT-TOKEN
|
// otherwise, add the X-OLAT-TOKEN
|
||||||
request.getHeaders().set("accept", "application/json");
|
request.getHeaders().set("accept", "application/json");
|
||||||
request.getHeaders().set("X-OLAT-TOKEN", token);
|
request.getHeaders().set("X-OLAT-TOKEN", token);
|
||||||
|
|
Loading…
Reference in a new issue