With flush, it's better
This commit is contained in:
parent
a42706c376
commit
98e52aedd8
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue