fix(ResponseUtils.java): 补上switch里漏掉的break

This commit is contained in:
Gadfly 2021-08-06 11:31:09 +08:00
parent e55c0fce8e
commit f34c20ddaa

View File

@ -27,8 +27,10 @@ public class ResponseUtils {
break;
case TOKEN_ACCESS_FORBIDDEN:
response.setStatusCode(HttpStatus.FORBIDDEN);
break;
default:
response.setStatusCode(HttpStatus.BAD_REQUEST);
break;
}
response.getHeaders().set(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
response.getHeaders().set("Access-Control-Allow-Origin", "*");