Project

General

Profile

lighttpd-1.4.19-set_fcgi_var_server_software_to_server_tag.patch

patch. -- slashbeast - Anonymous, 2008-06-26 21:14

View differences:

lighttpd-1.4.19/src/mod_fastcgi.c 2008-06-26 22:55:40.000000000 +0200
1860 1860
	buffer_prepare_copy(p->fcgi_env, 1024);
1861 1861

  
1862 1862

  
1863
	FCGI_ENV_ADD_CHECK(fcgi_env_add(p->fcgi_env, CONST_STR_LEN("SERVER_SOFTWARE"), CONST_STR_LEN(PACKAGE_NAME"/"PACKAGE_VERSION)),con)
1863

  
1864
if (buffer_is_empty(con->conf.server_tag)) {
1865
 	FCGI_ENV_ADD_CHECK(fcgi_env_add(p->fcgi_env, CONST_STR_LEN("SERVER_SOFTWARE"), CONST_STR_LEN(PACKAGE_NAME"/"PACKAGE_VERSION)),con)
1866
} else {
1867
	FCGI_ENV_ADD_CHECK(fcgi_env_add(p->fcgi_env, CONST_STR_LEN("SERVER_SOFTWARE"), CONST_BUF_LEN(con->conf.server_tag)),con)
1868
}
1864 1869

  
1865 1870
	if (con->server_name->used) {
1866 1871
		FCGI_ENV_ADD_CHECK(fcgi_env_add(p->fcgi_env, CONST_STR_LEN("SERVER_NAME"), CONST_BUF_LEN(con->server_name)),con)