Skip to content

Commit

Permalink
Removing a line that causes false negatives on /.well-known/security.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
matreurai committed Oct 17, 2024
1 parent 7ca22da commit 0de5c4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion api/security-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const securityTxtHandler = async (urlParam) => {
for (let path of SECURITY_TXT_PATHS) {
try {
const result = await fetchSecurityTxt(url, path);
if (result && result.includes('<html')) return { isPresent: false };
if (result) {
return {
isPresent: true,
Expand Down

0 comments on commit 0de5c4e

Please sign in to comment.