func handleSCPDs(mux *http.ServeMux) {
	for _, s := range services {
		mux.HandleFunc(s.SCPDURL, func(serviceDesc string) http.HandlerFunc {
			return func(w http.ResponseWriter, r *http.Request) {
				w.Header().Set("content-type", `text/xml; charset="utf-8"`)
				http.ServeContent(w, r, ".xml", startTime, bytes.NewReader([]byte(serviceDesc)))
			}
		}(s.SCPD))
	}
}
// Install handlers to serve SCPD for each UPnP service.
Install handlers to serve SCPD for each UPnP service.
// Install handlers to serve SCPD for each UPnP service .
func handleSCPDs(mux *http.ServeMux) {
	for _, s := range services {
		mux.HandleFunc(s.SCPDURL, func(serviceDesc string) http.HandlerFunc {
			return func(w http.ResponseWriter, r *http.Request) {
				w.Header().Set("content-type", `text/xml; charset="utf-8"`)
				http.ServeContent(w, r, ".xml", startTime, bytes.NewReader([]byte(serviceDesc)))
			}
		}(s.SCPD))
	}
}
func handleSCPDs ( mux * http . ServeMux ) { for _ , s := range services { mux . HandleFunc ( s . SCPDURL , func ( serviceDesc string ) http . HandlerFunc { return func ( w http . ResponseWriter , r * http . Request ) { w . Header ( ) . Set ( " " , `text/xml; charset="utf-8"` ) http . ServeContent ( w , r , " " , startTime , bytes . NewReader ( [ ] byte ( serviceDesc ) ) ) } } ( s . SCPD ) ) } }
Install handlers to serve SCPD for each UPnP service.
Install handlers to serve SCPD for each UPnP service .