summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorViktor Szakats <commit@vszakats.net>2018-07-30 18:18:46 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-07-31 12:49:26 (GMT)
commit8aa9cd1518b8873471ddb075b8d711dd0c4873b7 (patch)
treed8a9223e9ce6119176ba9d8cb2e6f20638f89afb /plugins
parente467d9d1ecde181ca0ae2bdcb2e8301f8b4343af (diff)
downloadmxe-8aa9cd1518b8873471ddb075b8d711dd0c4873b7.zip
mxe-8aa9cd1518b8873471ddb075b8d711dd0c4873b7.tar.gz
mxe-8aa9cd1518b8873471ddb075b8d711dd0c4873b7.tar.bz2
use HTTP URLs (without redirects) for Lua examples
These Lua snippets don't support security.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/luarocks/README.md2
-rw-r--r--plugins/luarocks/test.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/luarocks/README.md b/plugins/luarocks/README.md
index 902aae2..12385fc 100644
--- a/plugins/luarocks/README.md
+++ b/plugins/luarocks/README.md
@@ -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>
....
```
diff --git a/plugins/luarocks/test.lua b/plugins/luarocks/test.lua
index acb3d80..eadb077 100644
--- a/plugins/luarocks/test.lua
+++ b/plugins/luarocks/test.lua
@@ -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")