2679 posts
Location
You will never find me, muhahahahahaha
Posted 07 February 2016 - 09:46 PM
I tried running
this code a LOT of times and it is not working.
When I replace the URL with "
http://google.com" or "
http://example.com" it works normally.
When running the code locally (from a file on the PC) it still does not work.
I even restarted my physical laptop to be sure it is not an issue with the laptop.
Thanks for the help in advance.
PS: For those to lazy to click on the link, here is the code:
--[[
Updater Script
]]--
local path = ...
print(path)
print("lelz")
local handle = http.get("https://raw.githubusercontent.com/Creator/Tunnel/master/Releases/latest.lua")
local f = loadstring(handle.readAll())
print(handle.readAll())
setfenv(f,_G)
f(path)
And make sure to make me feel like an idiot when you discover the issue.
2427 posts
Location
UK
Posted 07 February 2016 - 10:06 PM
could the https be causing the problem?
2679 posts
Location
You will never find me, muhahahahahaha
Posted 07 February 2016 - 10:26 PM
I think I tried it both ways. it turns out the s does matter. Thanks.
570 posts
Posted 07 February 2016 - 10:50 PM
Where are you testing this? HTTPS works fine for me on CCEmuRedux.
2679 posts
Location
You will never find me, muhahahahahaha
Posted 07 February 2016 - 11:37 PM
Normal CC.
957 posts
Location
Web Development
Posted 07 February 2016 - 11:40 PM
What is not working? What does it do?
2679 posts
Location
You will never find me, muhahahahahaha
Posted 07 February 2016 - 11:42 PM
Well, it works now. It turns out the s in https is very important.