shithub: riscv

ref: ec8d7cdf024949d73c5f887f23f060cd33c1df28
dir: /sys/src/cmd/ip/httpd/anonymous.c/

View raw version
#include <u.h>
#include <libc.h>
#include "httpd.h"
#include "httpsrv.h"

void
anonymous(HConnect *c)
{
	if(bind(webroot, "/", MREPL) < 0){
		hfail(c, HInternal);
		exits(nil);
	}
	chdir("/");
}