Skip to content

Commit

Permalink
Correct gsub replacement string
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-wieser authored Oct 7, 2019
1 parent b22f6bb commit 081b4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis/github
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local function getAPI(path, auth)
end

local function encodeURI(s)
return s:gsub(' ', '%20')
return s:gsub(' ', '%%20')
end

-- A class for authorization
Expand Down

0 comments on commit 081b4d2

Please sign in to comment.