Skip to content

Commit

Permalink
fix: utils
Browse files Browse the repository at this point in the history
  • Loading branch information
damikael committed Jan 31, 2025
1 parent dbaf671 commit d84f424
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spid-validator/server/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ class Utils {
}

// check if URL exists
var q = url.parse(src, true);
var protocol = (q.protocol == "http:") ? require('http') : require('https');
protocol.get(src, (res) => {
https.get(src, (res) => {
if(res.statusCode!='200') {
return reject("Metadata non trovato alla URL indicata");
}
Expand Down

0 comments on commit d84f424

Please sign in to comment.