Thanks for such a quick response! Maybe my terminology wasn't accurate. I'm actually using Lua code. Here is a very simple conf example:
events {
worker_connections 19000;
multi_accept on;
}
http {
server {
listen 80;
location / {
content_by_lua '
ngx.say(ngx.req.get_headers()["If-Match"])
';
}
}
}
-----
I'm using the Chrome app, Postman, as the client. When I don't supply a header, it outputs "Nil" as expected. If I supply an "If-Match" header with any value, I get the following response:
-----
<html>
<head>
<title>412 Precondition Failed</title>
</head>
<body bgcolor="white">
<center>
<h1>412 Precondition Failed</h1>
</center>
<hr>
</body>
</html>
-----
Thanks!