Project

General

Profile

Bug #2583 » lighty-1.4.35.patch

pankaj.s01@samsung.com, 2014-07-08 06:20

View differences:

lighttpd-1.4.35/src/mod_cgi.c 2014-07-08 09:51:16.000000000 +0530 → lighttpd-1.4.35/src/mod_cgi.c 2014-07-08 09:54:36.000000000 +0530
836 836
		cgi_env_add(&env, CONST_STR_LEN("GATEWAY_INTERFACE"), CONST_STR_LEN("CGI/1.1"));
837 837

  
838 838
		s = get_http_version_name(con->request.http_version);
839
		
840
		force_assert(s);
839 841

  
840 842
		cgi_env_add(&env, CONST_STR_LEN("SERVER_PROTOCOL"), s, strlen(s));
841 843

  
......
872 874
		cgi_env_add(&env, CONST_STR_LEN("SERVER_ADDR"), s, strlen(s));
873 875

  
874 876
		s = get_http_method_name(con->request.http_method);
877
		force_assert(s);
875 878
		cgi_env_add(&env, CONST_STR_LEN("REQUEST_METHOD"), s, strlen(s));
876 879

  
877 880
		if (!buffer_is_empty(con->request.pathinfo)) {
lighttpd-1.4.35/src/mod_scgi.c 2014-07-08 09:51:16.000000000 +0530 → lighttpd-1.4.35/src/mod_scgi.c 2014-07-08 09:56:35.000000000 +0530
1623 1623
	}
1624 1624

  
1625 1625
	s = get_http_method_name(con->request.http_method);
1626
	force_assert(s);
1626 1627
	scgi_env_add(p->scgi_env, CONST_STR_LEN("REQUEST_METHOD"), s, strlen(s));
1627 1628
	scgi_env_add(p->scgi_env, CONST_STR_LEN("REDIRECT_STATUS"), CONST_STR_LEN("200")); /* if php is compiled with --force-redirect */
1628 1629
	s = get_http_version_name(con->request.http_version);
1630
	force_assert(s);
1629 1631
	scgi_env_add(p->scgi_env, CONST_STR_LEN("SERVER_PROTOCOL"), s, strlen(s));
1630 1632

  
1631 1633
#ifdef USE_OPENSSL
(2-2/2)