Permalink
Browse files

Clean up. Removes a few lines of old code.

git-svn-id: svn://cherokee-project.com/cherokee/trunk@6829 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information...
alobbs committed Aug 30, 2011
1 parent 7d1e65b commit 0910c7cd51b047a3d36fa22ca8a1441dcf72c7a4
Showing with 2 additions and 8 deletions.
  1. +2 −8 cherokee/handler_cgi_base.c
@@ -724,16 +724,10 @@ cherokee_handler_cgi_base_build_envp (cherokee_handler_cgi_base_t *cgi, cherokee
* - If the SCGI is handling / it is ''
* - Otherwise, it is the web_directory.
*/
cherokee_buffer_clean (&tmp);
if (! cherokee_buffer_is_empty (&conn->userdir)) {
cherokee_buffer_add_str (&tmp, "/~");
cherokee_buffer_add_buffer (&tmp, &conn->userdir);
}
if (conn->web_directory.len > 1) {
cgi->add_env_pair (cgi, "SCRIPT_NAME", 11,
conn->web_directory.buf, conn->web_directory.len);
conn->web_directory.buf,
conn->web_directory.len);
} else {
cgi->add_env_pair (cgi, "SCRIPT_NAME", 11, "", 0);
}

0 comments on commit 0910c7c

Please sign in to comment.