From b9ba650992c5c4d292c060fc33d04bc011a3ec83 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 3 Aug 2022 14:40:00 -0700 Subject: [PATCH] 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 --- src/server/types/Pet.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/types/Pet.js b/src/server/types/Pet.js index 5c78ae0..59c76e7 100644 --- a/src/server/types/Pet.js +++ b/src/server/types/Pet.js @@ -141,9 +141,8 @@ const resolvers = { }, }; -const neopetsXmlrpcClient = xmlrpc.createClient({ +const neopetsXmlrpcClient = xmlrpc.createSecureClient({ host: "www.neopets.com", - port: 80, path: "/amfphp/xmlrpc.php", }); const neopetsXmlrpcCall = util