Welcome! Log In Create A New Profile

Advanced

Re: sub_filter + POST request

Валентин Бартенев
February 11, 2013 11:50AM
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
Subject Author Posted

sub_filter + POST request

john2do February 11, 2013 12:29AM

Re: sub_filter + POST request

Валентин Бартенев February 11, 2013 11:50AM

Re: sub_filter + POST request

john2do February 12, 2013 03:19AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 252
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