Re: Matching & Acting upon Headers received from Upstream with proxy_pass

2019-02-01 Thread Alec Muffett
On Fri, 1 Feb 2019 at 13:30, Maxim Dounin wrote: Hi Maxim! The 406 looks wrong to me. It tells the client that the response > is not acceptable as per accept headers in the request. In your > case it is more like 500, Concur. I did some research on Wikipedia and followed Cloudflare's exampl

Re: Matching & Acting upon Headers received from Upstream with proxy_pass

2019-02-01 Thread Maxim Dounin
Hello! On Thu, Jan 31, 2019 at 09:06:10PM +, Alec Muffett wrote: > I'm running a reverse proxy and I want to trap when upstream is sending me: > > Content-Encoding: gzip > > ...and on those occasions return (probably) 406 downstream to the client; > the reason for this is that I am always