func basicAuth(pass handler) handler {
	return func(w http.ResponseWriter, r *http.Request) {
		key, value, _ := r.BasicAuth()
		if key != "v1GameClientKey" || value != "EAEC945C371B2EC361DE399C2F11E" {
			http.Error(w, "authorization failed", http.StatusUnauthorized)
			return
		}
		pass(w, r)
	}
}
// Let the web server do basic authentication
Let the web server do basic authentication
// Let the web server do basic authentication
func basicAuth(pass handler) handler {
	return func(w http.ResponseWriter, r *http.Request) {
		key, value, _ := r.BasicAuth()
		if key != "v1GameClientKey" || value != "EAEC945C371B2EC361DE399C2F11E" {
			http.Error(w, "authorization failed", http.StatusUnauthorized)
			return
		}
		pass(w, r)
	}
}
func basicAuth ( pass handler ) handler { return func ( w http . ResponseWriter , r * http . Request ) { key , value , _ := r . BasicAuth ( ) if key != " " || value != " " { http . Error ( w , " " , http . StatusUnauthorized ) return } pass ( w , r ) } }
Let the web server do basic authentication
Let the web server do basic authentication