Skip to content

Commit

Permalink
Merge pull request #41 from BugBountyzip/Bug-fix-for-Responses-with-m…
Browse files Browse the repository at this point in the history
…ultiple-html-tags

Update MultipleHtmlTags.bambda
  • Loading branch information
ps-porpoise authored Dec 13, 2023
2 parents 4124d9a + 14ed0b2 commit 13dbd19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Proxy/HTTP/MultipleHtmlTags.bambda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @author albinowax
**/

return requestResponse.response().statedMimeType() == MimeType.HTML &&
return requestResponse.hasResponse() &&
requestResponse.response().statedMimeType() == MimeType.HTML &&
utilities().byteUtils().countMatches(
requestResponse.response().body().getBytes(), "</html>".getBytes()) > 1;
requestResponse.response().body().getBytes(), "</html>".getBytes()) > 1;

0 comments on commit 13dbd19

Please sign in to comment.