1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00

Added ":addTrustedRootCA()" to the httpc contexts, close #8, Added some values in ctr.

I didn't test :addTrustedRootCA(), but it's just a simple string-to-char+size function.
This commit is contained in:
Firew0lf 2016-03-12 19:57:59 +01:00
parent 9db21c7831
commit 6a9fbbb133
6 changed files with 38 additions and 8 deletions

View file

@ -25,19 +25,18 @@ while ctr.run() do
dls = dls + 1
end
gfx.startFrame(gfx.TOP)
gfx.start(gfx.TOP)
gfx.text(0, 0, data)
gfx.text(0, 20, "Downloaded "..dls.." times.")
gfx.endFrame()
gfx.stop()
gfx.startFrame(gfx.BOTTOM)
gfx.start(gfx.BOTTOM)
gfx.text(2, 2, "HTTP Contexts example")
gfx.text(2, 20, "The data is downloaded from '"..addr.."'.")
gfx.text(2, 30, "Press [B] to redownload.")
gfx.endFrame()
gfx.stop()
gfx.render()
end
context:close()