From ecd40596c0665a823c654412a80c8bba20278e8b Mon Sep 17 00:00:00 2001 From: Jan Broer Date: Thu, 31 Dec 2015 03:29:45 +0100 Subject: [PATCH] Adapt to Lua API changes in HAProxy 1.6.3 --- README.md | 2 +- acme-http01-webroot.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 62e0d96..d8a708e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ No need to leverage a backend webserver for the trivial task of serving a key au ### Prerequesites -You need to be rolling HAProxy version 1.6 or later with Lua support enabled. +You need to be rolling HAProxy version `1.6.3` or later with Lua support enabled. To check if your HAProxy binary was compiled with Lua support run the following command: haproxy -vv diff --git a/acme-http01-webroot.lua b/acme-http01-webroot.lua index 4311c79..f45445d 100644 --- a/acme-http01-webroot.lua +++ b/acme-http01-webroot.lua @@ -23,7 +23,7 @@ -- acme = {} -acme.version = "0.1.0" +acme.version = "0.1.1" -- -- Configuration @@ -47,7 +47,7 @@ end -- acme.http01 = function(applet) local response = "" - local reqPath = applet.sf:path() + local reqPath = applet.path local src = applet.sf:src() local token = reqPath:match( ".+/(.*)$" )