|
|
@@ -30,8 +30,8 @@ public class BasicFilter implements Filter {
|
|
|
|
|
|
// 简单验证
|
|
|
String version = request.getHeader("auth");
|
|
|
- if (AUTH_STR.equals(version)) {
|
|
|
- this.authcReq(response, HttpStatus.UNAUTHORIZED.value(), HttpStatus.UNAUTHORIZED.BAD_GATEWAY.getReasonPhrase());
|
|
|
+ if (!AUTH_STR.equals(version)) {
|
|
|
+ this.authcReq(response, HttpStatus.UNAUTHORIZED.value(), HttpStatus.UNAUTHORIZED.getReasonPhrase());
|
|
|
return;
|
|
|
}
|
|
|
|