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);
|
||||
}catch(Exception e){
|
||||
HttpUtil.responseHeaders(writer, 401, "Access-Control-Allow-Origin: *");
|
||||
throw e;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
|
@ -19,7 +19,7 @@ class PlayerDetailsTests {
|
|||
|
||||
@BeforeAll
|
||||
void init(){
|
||||
server = new Thread(new Runnable() {
|
||||
server = new Thread(new Runnable(){
|
||||
@Override
|
||||
public void run(){
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue