﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
124	ngx_http_subrequest() supports only GET method?	Alexey Radkov	somebody	"The question is why? Is this important for nginx healthy work?
I create subrequests in my own module for passing requests to a next upstream in a given list of upstreams until working server in some upstream in the list found (this is kind of failover technique). Original request's methods can be GET or POST. But ngx_http_subrequest() insists on GET only:

sr->method = NGX_HTTP_GET;
...
sr->method_name = ngx_http_core_get_method;

I changed these lines in ngx_http_subrequest() by:

sr->method = r->method;
...
sr->method_name = r->method_name;

May i have any problems with that? My tests shows nothing wrong.

Thank you!"	enhancement	closed	minor		nginx-core	1.0.x	invalid			Linux localhost.localdomain 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov 23 13:07:52 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux	"nginx: nginx version: nginx/1.0.10
nginx: configure arguments: --add-module=../contrib/nginx_http_echo_module/ --add-module=../nginx_http_rc_module --with-debug"
