diff --git a/http_utility.go b/http_utility.go index f4ba826..cf812e1 100644 --- a/http_utility.go +++ b/http_utility.go @@ -61,7 +61,7 @@ func RespondWithHttpError500(w http.ResponseWriter, req *http.Request) { //TODO: Add parameters to enable/disable roles authorization checks // Sets common headers and checks for token validity. -func ProcessHeaders(handlerFunc http.HandlerFunc, authEnabled bool) http.HandlerFunc { +func HttpPreProc(handlerFunc http.HandlerFunc, authEnabled bool) http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { // @TODO: check Content-type header (must be application/json) // ctype := w.Header.Get("Content-Type")