shithub: riscv

ref: 52e4e51b50589ecb2b06559c28b7ce9f682815be
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("/");
}