From 68d4dbbd12824698b8503b1a445ba2addb5cf5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Thu, 13 Oct 2016 12:13:37 +0200 Subject: [PATCH] http pre proc --- http_utility.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 1.8.1.2