Passing $upstream_response_time in a header

Jonathan Simowitz simowitz at google.com
Tue Mar 7 21:38:04 UTC 2017


Hello,

I have an nginx server that runs as reverse proxy and I would like to pass
the $upstream_response_time value in a header. I find that when I do the
value is actually a linux timestamp with millisecond resolution instead of
a value of seconds with millisecond resolution. Apparently this is
automatically converted when written to the logs. Is there a way to trigger
the conversion for passing in a header?

Thank you,
~Jonathan

-- 
Jonathan Simowitz | Jigsaw |  Software Engineer |  simowitz at google.com |
 631-223-8608
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170307/1e7d87f7/attachment.html>


More information about the nginx mailing list