We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b8b44 commit 795d41fCopy full SHA for 795d41f
1 file changed
api/security-txt.js
@@ -74,7 +74,7 @@ const securityTxtHandler = async (urlParam) => {
74
async function fetchSecurityTxt(baseURL, path) {
75
return new Promise((resolve, reject) => {
76
const url = new URL(path, baseURL);
77
- https.get(url.toString(), (res) => {
+ https.get(url.toString(), { headers: { 'User-Agent': 'curl/8.0.0' } }, (res) => {
78
if (res.statusCode === 200) {
79
let data = '';
80
res.on('data', (chunk) => {
0 commit comments