Exporting WriteErrorResponse

This commit is contained in:
Frederick F. Kautz IV
2015-04-26 16:28:21 -07:00
parent 3fb4f2894d
commit e05d46a0b5
4 changed files with 34 additions and 33 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func validateHandler(conf config.Config, h http.Handler) http.Handler {
func (h vHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
acceptsContentType := getContentType(r)
if acceptsContentType == unknownContentType {
writeErrorResponse(w, r, NotAcceptable, acceptsContentType, r.URL.Path)
WriteErrorResponse(w, r, NotAcceptable, acceptsContentType, r.URL.Path)
return
}
// success