Skip to content

Commit

Permalink
Protect against Content-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Jun 9, 2023
1 parent 4a8c7bd commit 1b96583
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ else if ( actualContentType.equals(WebContent.contentTypeJSON))
}

private String removeCharset(String contentType) {
if ( contentType == null )
return contentType;
int idx = contentType.indexOf(';');
if ( idx < 0 )
return contentType;
Expand Down

0 comments on commit 1b96583

Please sign in to comment.