Skip to content

Commit

Permalink
remove */* case
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 committed Dec 15, 2023
1 parent e6bf25f commit 42fddcc
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ public boolean isRawAcceptedWithSingleProduces(String accept, int length) {
end--;
}
int trimmedAcceptLength = end - start + 1;
if (trimmedAcceptLength == 3 && "*/*".regionMatches(0, accept, start, 3)) {
return true;
}
// WARNING: this is strict for security reasons ie a malformed accept header element will not match
// otherwise we would have been forced to parse the rest of accept header (eg params)
// see https://www.rfc-editor.org/rfc/rfc2616#section-14.1
Expand Down

0 comments on commit 42fddcc

Please sign in to comment.