Welcome! Log In Create A New Profile

Advanced

sub_filter not working on JSON file

August 02, 2018 09:48AM
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 to output what mime type the file from the upstream server is so I can make sure I have the right filter type?

Or, is there something I should also be doing to make the sub_filter work on a JSON file?

___________________________________________
Michael Friscia
Office of Communications
Yale School of Medicine
(203) 737-7932 - office
(203) 931-5381 - mobile
http://web.yale.eduhttp://web.yale.edu/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

sub_filter not working on JSON file

wickedhangover August 02, 2018 09:48AM

Re: sub_filter not working on JSON file

Dmitry Volyntsev August 02, 2018 09:52AM

Re: sub_filter not working on JSON file

wickedhangover August 02, 2018 10:12AM

Re: sub_filter not working on JSON file

Maxim Dounin August 02, 2018 11:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 298
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready