diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-04-24 20:03:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-24 20:03:19 +0200 |
commit | 393b59ef5d1d05fd00e102231e689f646c438582 (patch) | |
tree | 09f3601fcf6fb13bef25f21df869b06d29cf989c | |
parent | 8109b957b668a90d4a9b00f1e9db3d8d7e491bf3 (diff) |
proc: expose HTTP Origin header in process environment
Map the "Origin:" header as $HTTP_ORIGIN environment variable for use by
request handling processes.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | proc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -30,6 +30,7 @@ __header(connection, connection) \ __header(cookie, cookie) \ __header(host, host) \ + __header(origin, origin) \ __header(referer, referer) \ __header(user_agent, user-agent) \ __header(content_type, content-type) \ @@ -63,6 +64,7 @@ static const struct { { "HTTP_CONNECTION", HDR_connection }, { "HTTP_COOKIE", HDR_cookie }, { "HTTP_HOST", HDR_host }, + { "HTTP_ORIGIN", HDR_origin }, { "HTTP_REFERER", HDR_referer }, { "HTTP_USER_AGENT", HDR_user_agent }, { "HTTP_X_HTTP_METHOD_OVERRIDE", HDR_x_http_method_override }, |