We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c77e28a + 9d764dd commit 17c8352Copy full SHA for 17c8352
1 file changed
cosu.lua
@@ -200,7 +200,7 @@ function update(event, ...)
200
elseif event == "check" then
201
--[[ Check updates ]]
202
if http then
203
- local gitAPI=http.get(sGithub.api)
+ local gitAPI=http.get(sGithub.api,_G._GIT_API_KEY and {Authorization="token ".._G._GIT_API_KEY})
204
if gitAPI.getResponseCode()==200 then
205
local tGitContent = textutils.unserialiseJSON(gitAPI.readAll())
206
if tGitContent.tag_name ~= sVersion then
@@ -2227,4 +2227,4 @@ if type(running) == "number" then
2227
end
2228
sleep(0.5)
2229
2230
-end
+end
0 commit comments