a.logger.Warn("Could not decode accept header",zap.Error(err))
http.Error(w,fmt.Sprintf("Runtime function handler was unable to parse accept header: %s",accept),400)
return
}
ifacceptMediaType!="application/json"{
http.Error(w,fmt.Sprintf("Runtime function received invalid accept header: \"%s\", expected:\"application/json\"",accept),400)
if!acceptable{
http.Error(w,fmt.Sprintf("Runtime function received invalid accept header: \"%s\", expected at least: \"application/json\"",r.Header.Get("accept")),400)