git: 9front

ref: 419d4d410ca3387c24d45c16e5697d66a785d079
dir: /rc/bin/rc-httpd/handlers/authorize/

View raw version
#!/bin/rc
if(~ $REMOTE_USER ''){
	extra_headers=($extra_headers 'WWW-Authenticate: Basic realm="'$"SERVER_NAME'"')
	error 401
	exit
}