Project

General

Profile

Bug #2583 » light-mod_scgi-1.4.35.patch

pankaj.s01@samsung.com, 2014-07-07 12:36

View differences:

lighttpd-1.4.35/src/mod_scgi.c 2014-03-06 19:38:00.000000000 +0530 → lighttpd-1.4.35/src/mod_scgi.c 2014-07-07 16:16:21.000000000 +0530
1623 1623
	}
1624 1624

  
1625 1625
	s = get_http_method_name(con->request.http_method);
1626
	scgi_env_add(p->scgi_env, CONST_STR_LEN("REQUEST_METHOD"), s, strlen(s));
1626
	if (s)
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);
1629
	scgi_env_add(p->scgi_env, CONST_STR_LEN("SERVER_PROTOCOL"), s, strlen(s));
1630
	if (s)
1631
		scgi_env_add(p->scgi_env, CONST_STR_LEN("SERVER_PROTOCOL"), s, strlen(s));
1630 1632

  
1631 1633
#ifdef USE_OPENSSL
1632 1634
	if (buffer_is_equal_caseless_string(con->uri.scheme, CONST_STR_LEN("https"))) {
(1-1/2)