With flush, it's better

This commit is contained in:
jeffcheasey88 2023-03-18 22:52:52 +01:00
parent a42706c376
commit 98e52aedd8

View file

@ -54,6 +54,8 @@ public class Client extends Thread{
return new User(jwtClaims);
}catch(Exception e){
HttpUtil.responseHeaders(writer, 401, "Access-Control-Allow-Origin: *");
writer.flush();
writer.close();
throw e;
}
}