Re: sub_filter not working on JSON file

2018-08-02 Thread Maxim Dounin
Hello! On Thu, Aug 02, 2018 at 01:46:35PM +, Friscia, Michael wrote: > I’m trying to figure out why my sub_filter is not working on a > JSON file. I do have application/json and text/json listed in > the sub_filter_types but the simple string replace is not > happening. It causes me to thi

Re: sub_filter not working on JSON file

2018-08-02 Thread Friscia, Michael
Yeah, the sub_filter_types is fine, if I set it correctly it does not work. So I tested by using Sub_filter_types *; This works fine which makes me wonder what Nginx is seeing as the mime type of this json file. I'll dig through the upstream variables again but I don't recall seeing it unless it

Re: sub_filter not working on JSON file

2018-08-02 Thread Dmitry Volyntsev
On 02.08.2018 16:46, Friscia, Michael wrote: I’m trying to figure out why my sub_filter is not working on a JSON file. I do have application/json and text/json listed in the sub_filter_types but the simple string replace is not happening. It causes me to think that for whatever reason, Nginx

sub_filter not working on JSON file

2018-08-02 Thread Friscia, Michael
I’m trying to figure out why my sub_filter is not working on a JSON file. I do have application/json and text/json listed in the sub_filter_types but the simple string replace is not happening. It causes me to think that for whatever reason, Nginx is not seeing this file as JSON. Is there a way