Skip to content

Commit 4ab26c7

Browse files
committed
refactor: Remove redundant check in cookie character validation
1 parent 22bf190 commit 4ab26c7

File tree

1 file changed

+1
-1
lines changed
  • aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet

1 file changed

+1
-1
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsCookieProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,6 @@ private boolean isToken(String s) {
262262
}
263263

264264
private boolean isValidCookieChar(char c) {
265-
return !(c < 0x21 || c > 0x7E || c == 0x22 || c == 0x2c || c == 0x3b || c == 0x5c || c == 0x7f);
265+
return !(c < 0x21 || c > 0x7E || c == 0x22 || c == 0x2c || c == 0x3b || c == 0x5c);
266266
}
267267
}

0 commit comments

Comments
 (0)