if (debug) log_d("makedir: redirecting to %s", r->newloc);
static int makedir(struct request *r){	int l;	if (r->args)		l = snprintf(r->newloc, PATHLEN, "%s/?%s", r->url, r->args);	else		l = snprintf(r->newloc, PATHLEN, "%s/", r->url);	if (l >= PATHLEN) {		log_d("makedir: url too large");		r->status = 500;		return 0;	}	r->location = r->newloc;	r->status = 302;	return 0;}