From 64bebc4c2794dfabf3357a4749c890a25a5478f9 Mon Sep 17 00:00:00 2001 From: Dan Ports Date: Sun, 26 Apr 2020 14:09:10 -0600 Subject: [PATCH] Use textutils.urlEncode rather than rolling our own. --- apis/github | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/github b/apis/github index 5b6ab77..f28b12d 100644 --- a/apis/github +++ b/apis/github @@ -16,7 +16,7 @@ local function getAPI(path, auth) end local function encodeURI(s) - return s:gsub(' ', '%%20') + return s:gsub('([^/]+)', textutils.urlEncode) end -- A class for authorization