From 8aa9cd1518b8873471ddb075b8d711dd0c4873b7 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 30 Jul 2018 18:18:46 +0000 Subject: [PATCH] use HTTP URLs (without redirects) for Lua examples These Lua snippets don't support security. --- plugins/luarocks/README.md | 2 +- plugins/luarocks/test.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/luarocks/README.md b/plugins/luarocks/README.md index 902aae23..12385fc1 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/"))' .... ``` diff --git a/plugins/luarocks/test.lua b/plugins/luarocks/test.lua index acb3d805..eadb077f 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")