mirror of https://git.wownero.com/dsc/mxe.git
use HTTP URLs (without redirects) for Lua examples
These Lua snippets don't support security.
This commit is contained in:
parent
e467d9d1ec
commit
8aa9cd1518
|
@ -19,7 +19,7 @@ function `require`.
|
|||
Example:
|
||||
```
|
||||
$ luarocks install luasocket
|
||||
$ lua -e 'http = require "socket.http"; print(http.request("https://mxe.cc/"))'
|
||||
$ lua -e 'http = require "socket.http"; print(http.request("http://example.org/"))'
|
||||
<!DOCTYPE html>
|
||||
....
|
||||
```
|
||||
|
|
|
@ -2,7 +2,7 @@ local lpeg = require 'lpeg'
|
|||
assert(((lpeg.R('AZ'))^1):match("TEXT") == 5)
|
||||
|
||||
local http = require "socket.http"
|
||||
assert(http.request("https://mxe.cc/"):match('MXE'))
|
||||
assert(http.request("http://example.org/"):match('Example'))
|
||||
|
||||
local ll = require 'llthreads2'
|
||||
local thread = ll.new("return 123")
|
||||
|
|
Loading…
Reference in New Issue