Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: sub_filter + POST request

$
0
0
On Monday 11 February 2013 09:29:43 john2do wrote:
> День добрый,
>
> собственно вопрос по сабжу:
> это баг или фича, что sub_filter не работает на POST-ответы?

Работает. Простой тест:

% cat test.conf
events { }

http {
default_type text/html;

server {
listen 8080;
location / {
proxy_pass http://localhost:8081;
sub_filter test replaced;
}
}

server {
listen 8081;
location / {
return 200 test;
}
}
}
% build/sbin/nginx -c ../test.conf
% telnet localhost 8080
POST / HTTP/1.0
Content-Length: 1

a
HTTP/1.1 200 OK
Server: nginx/1.3.12
Date: Mon, 11 Feb 2013 16:46:31 GMT
Content-Type: text/html
Connection: close

replaced


> явного указания на ограничение по GET ответам нигде в документации не
> обнаружил.
>
> nginx 1.2.6
>

Смотрите что не так с вашими POST ответами, содержат ли они Content-Type,
заданный в sub_filter_types ( http://nginx.org/r/sub_filter_types/ru ).

--
Валентин Бартенев
http://nginx.com/support.html
http://nginx.org/en/donation.html
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>