Preshot case : 401 response header and 200 is on response content

This commit is contained in:
jeffcheasey88 2023-03-18 22:49:36 +01:00
parent 46e6b49db2
commit a42706c376
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}
}

View file

@ -19,7 +19,7 @@ class PlayerDetailsTests {
@BeforeAll
void init(){
server = new Thread(new Runnable() {
server = new Thread(new Runnable(){
@Override
public void run(){
try {