From 72abf040ac48253399787a60244318c0500b4770 Mon Sep 17 00:00:00 2001 From: mauve Date: Mon, 17 Aug 2020 20:57:59 -0400 Subject: Fix up protocol issues --- client.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client.js') diff --git a/client.js b/client.js index e4a3427..4b8bd8d 100644 --- a/client.js +++ b/client.js @@ -59,7 +59,7 @@ const _request = (pathOrUrl, opt, cb) => { }) // send request - socket.end(encodeURI(pathOrUrl) + ' \r\n') + socket.end(pathOrUrl + '\r\n') }) } @@ -127,6 +127,7 @@ const sendGeminiRequest = (pathOrUrl, opt, done) => { letUserConfirmClientCertUsage, clientCertStore, tlsOpt, + verifyAlpnId, } = { followRedirects: false, // https://gemini.circumlunar.space/docs/spec-spec.txt, 1.4.3 @@ -162,6 +163,7 @@ const sendGeminiRequest = (pathOrUrl, opt, done) => { hostname: target.hostname || 'localhost', port: target.port || DEFAULT_PORT, tlsOpt, + verifyAlpnId, } let cb = (err, res) => { -- cgit v1.3