Simplify arg processing

git-svn-id: file:///home/jj/hercules.svn/trunk@777 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
Jan Jaeger
2002-04-02 14:42:11 +00:00
parent 7c6c28e4a0
commit 8774878fed

View File

@@ -255,15 +255,6 @@ CGIVAR **cgivar;
}
static void http_load_cgi_variables(WEBBLK *webblk)
{
if(webblk->post_arg)
http_interpret_variable_string(webblk, webblk->post_arg, REQTYPE_POST);
if(webblk->get_arg)
http_interpret_variable_string(webblk, webblk->get_arg, REQTYPE_GET);
}
#if 0
static void http_dump_cgi_variables(WEBBLK *webblk)
{
@@ -494,6 +485,7 @@ static void *http_request(FILE *hsock)
pointer++;
}
*pointer = '\0';
http_interpret_variable_string(webblk, webblk->post_arg, REQTYPE_POST);
}
}
@@ -510,6 +502,7 @@ static void *http_request(FILE *hsock)
if ((pointer=strchr(url,'?'))) {
webblk->get_arg = strdup(pointer+1);
*pointer = 0;
http_interpret_variable_string(webblk, webblk->get_arg, REQTYPE_GET);
}
while(url[0] == '/' && url[1] == '/')
@@ -528,8 +521,6 @@ static void *http_request(FILE *hsock)
while(*url == '/')
url++;
http_load_cgi_variables(webblk);
#if 0
http_dump_cgi_variables(webblk);
#endif