mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Backed out preceding change.
This commit is contained in:
parent
c241dc5c8b
commit
57c5998ff9
1 changed files with 0 additions and 8 deletions
|
@ -577,14 +577,6 @@ int main(int argc, char *argv[])
|
|||
/* check force_cgi after startup, so we have proper output */
|
||||
if (cfg_get_long("cgi.force_redirect", &force_redirect) == FAILURE) {
|
||||
force_redirect = 1;
|
||||
{
|
||||
/* We don't need force_cgi on if running under IIS. */
|
||||
char* server_software = getenv("SERVER_SOFTWARE");
|
||||
char* server_prefix_expected = "Microsoft-IIS";
|
||||
if (server_software && (0 == strncmp(server_software,server_prefix_expected,strlen(server_prefix_expected)))) {
|
||||
force_redirect = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (cgi && force_redirect) {
|
||||
if (cfg_get_string("cgi.redirect_status_env", &redirect_status_env) == FAILURE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue