/[hydra]/hydra/src/cgi.c
ViewVC logotype

Diff of /hydra/src/cgi.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by nmav, Wed Sep 25 06:42:34 2002 UTC revision 1.6 by nmav, Wed Sep 25 19:55:53 2002 UTC
# Line 59  void create_common_env() Line 59  void create_common_env()
59       */       */
60      common_cgi_env[index++] = env_gen_extra("PATH",      common_cgi_env[index++] = env_gen_extra("PATH",
61                                              ((cgi_path != NULL) ? cgi_path : DEFAULT_PATH), 0);                                              ((cgi_path != NULL) ? cgi_path : DEFAULT_PATH), 0);
62      common_cgi_env[index++] = env_gen_extra("SERVER_SOFTWARE", SERVER_VERSION, 0);      common_cgi_env[index++] = env_gen_extra("SERVER_SOFTWARE", SERVER_NAME"/"SERVER_VERSION, 0);
63      common_cgi_env[index++] = env_gen_extra("GATEWAY_INTERFACE", CGI_VERSION, 0);      common_cgi_env[index++] = env_gen_extra("GATEWAY_INTERFACE", CGI_VERSION, 0);
64    
65      /* removed the SERVER_PORT which may change due to SSL support      /* removed the SERVER_PORT which may change due to SSL support
# Line 518  int init_cgi(request * req) Line 518  int init_cgi(request * req)
518              if (req->is_cgi==INDEXER_CGI)              if (req->is_cgi==INDEXER_CGI)
519                  execl(dirmaker, dirmaker, req->pathname, req->request_uri,                  execl(dirmaker, dirmaker, req->pathname, req->request_uri,
520                        NULL);                        NULL);
 #ifdef GUNZIP  
             else /* GUNZIP_CGI */  
                 execl(GUNZIP, GUNZIP, "--stdout", "--decompress",  
                       req->pathname, NULL);  
 #endif  
521          }          }
522          /* execve failed */          /* execve failed */
523          WARN(req->pathname);          WARN(req->pathname);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26