Adding custom HTTP headers to nginx X-Accel-Redirect

后端 未结 1 1587
鱼传尺愫
鱼传尺愫 2020-12-17 01:34

I am serving restricted downloads in rails using X-Accel-Redirect with nginx. To validate my downloads in client app, i am trying to send the checksum in the no

相关标签:
1条回答
  • 2020-12-17 02:26

    Use add_header Content-MD5 $upstream_http_content_md5;

    Since X-Accel-Redirect causes internal redirect nginx will not send returned headers, but it will keep them in $upstream_http_... variables. So you could use them.

    0 讨论(0)
提交回复
热议问题