Skip to content

Commit d84f424

Browse files
committed
fix: utils
1 parent dbaf671 commit d84f424

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

spid-validator/server/lib/utils.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ class Utils {
6464
}
6565

6666
// check if URL exists
67-
var q = url.parse(src, true);
68-
var protocol = (q.protocol == "http:") ? require('http') : require('https');
69-
protocol.get(src, (res) => {
67+
https.get(src, (res) => {
7068
if(res.statusCode!='200') {
7169
return reject("Metadata non trovato alla URL indicata");
7270
}

0 commit comments

Comments
 (0)