Skip to content

Commit

Permalink
Version 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 7, 2020
1 parent f6f9b15 commit 1fe20b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GenericScan.java
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,8 @@ public boolean isContentType(String contenttype, boolean negativect, IResponseIn

for (String header : HEADERS) {
if (header.toUpperCase().contains("CONTENT-TYPE")) {
String content_type = header.substring(header.lastIndexOf(":") + 1).toUpperCase();
if (items.contains(content_type.replace(" ", ""))) {
String content_type = header.substring(header.lastIndexOf(":") + 2).split(";")[0].toUpperCase();
if (items.contains(content_type)) {
if (negativect) {
return false;
}
Expand Down

0 comments on commit 1fe20b6

Please sign in to comment.