Rewrite echoheaders to use openresty's templating.

This automatically escapes things, and makes the code easier to read.

template.lua was slightly modifed to not escape /, so it is vendored.
This commit is contained in:
Ryan Hitchman 2017-06-14 17:22:51 -07:00
parent 245e6b0b0e
commit e5d5bda1ca
4 changed files with 573 additions and 61 deletions

View file

@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
FROM gcr.io/google_containers/nginx-slim:0.17
FROM gcr.io/google_containers/nginx-slim:0.18
ADD nginx.conf /etc/nginx/nginx.conf
ADD template.lua /usr/local/share/lua/5.1/
ADD README.md README.md