Is there a way i can apply string replace on a nginx variable. I am using nginx as a proxy for s3 restricted downloads. And i am forwarding the $upstream_http_etag to the response header with the different name.
add_header Content-MD5 $upstream_http_etag;
proxy_set_header Content-MD5 $upstream_http_etag;
The problem is etag is double quoted. I wanted to remove this double quotes before adding it to the header. Is there a possible way to do this.
I know i can strip it down on the client. But this is for older apps to work without the updates.
Any help is much appreciated.