/* We store the query string in Parameters[0]. Ensure we git without initial delimiter */
varqueryStringstring
iflen(request.Parameters[0])>0{
queryString=request.Parameters[0][1:]
iflen(responder.Request.Parameters[0])>0{
queryString=responder.Request.Parameters[0][1:]
}else{
queryString=request.Parameters[0]
queryString=responder.Request.Parameters[0]
}
cgiEnv=append(cgiEnv,envKeyValue("QUERY_STRING",queryString))/* URL encoded search or parameter string, MUST be set even if empty */
cgiEnv=append(cgiEnv,envKeyValue("SCRIPT_NAME","/"+request.RelPath()))/* URI path (not URL encoded) which could identify the CGI script (rather than script's output) */
cgiEnv=append(cgiEnv,envKeyValue("SCRIPT_NAME","/"+responder.Request.RelPath()))/* URI path (not URL encoded) which could identify the CGI script (rather than script's output) */
/* Fuck it. For now, we don't support PATH_INFO. It's a piece of shit variable */
// cgiEnv = append(cgiEnv, envKeyValue("PATH_INFO", responder.Parameters[0])) /* Sub-resource to be fetched by script, derived from path hierarch portion of URI. NOT URL encoded */