Replace Location Header in 302 Response

Hi all,
I have mitmproxy running in reverse proxy mode and would like to replace the Location: value in a specific 302 response.
Im not sure if i have to delve into scripting or whether there is a simpler way to achieve this?


We do not know what value you have to set but in my opinion you have to add your own script with only the response event handler. If you are familiar with python it will be only few lines.