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 dbaf671 commit d84f424Copy full SHA for d84f424
spid-validator/server/lib/utils.js
@@ -64,9 +64,7 @@ class Utils {
64
}
65
66
// 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) => {
+ https.get(src, (res) => {
70
if(res.statusCode!='200') {
71
return reject("Metadata non trovato alla URL indicata");
72
0 commit comments