Use HTTPS for AMFPHP requests

This was a bit trickier to figure out how to upgrade, it's not in the `xmlrpc` package's README, but I found the answer here: https://github.com/baalexander/node-xmlrpc/issues/142
This commit is contained in:
Emi Matchu 2022-08-03 14:40:00 -07:00
parent bd9017796e
commit b9ba650992

View file

@ -141,9 +141,8 @@ const resolvers = {
}, },
}; };
const neopetsXmlrpcClient = xmlrpc.createClient({ const neopetsXmlrpcClient = xmlrpc.createSecureClient({
host: "www.neopets.com", host: "www.neopets.com",
port: 80,
path: "/amfphp/xmlrpc.php", path: "/amfphp/xmlrpc.php",
}); });
const neopetsXmlrpcCall = util const neopetsXmlrpcCall = util