Preshot case : 401 response header and 200 is on response content
This commit is contained in:
parent
46e6b49db2
commit
a42706c376
2 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ public class Client extends Thread{
|
||||||
return new User(jwtClaims);
|
return new User(jwtClaims);
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
HttpUtil.responseHeaders(writer, 401, "Access-Control-Allow-Origin: *");
|
HttpUtil.responseHeaders(writer, 401, "Access-Control-Allow-Origin: *");
|
||||||
}
|
throw e;
|
||||||
return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue