Commit 68d4dbbd12824698b8503b1a445ba2addb5cf5de

Authored by Marko Tikvić
1 parent 5f1346d2d7
Exists in master and in 1 other branch v2

http pre proc

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
... ... @@ -61,7 +61,7 @@ func RespondWithHttpError500(w http.ResponseWriter, req *http.Request) {
61 61  
62 62 //TODO: Add parameters to enable/disable roles authorization checks
63 63 // Sets common headers and checks for token validity.
64   -func ProcessHeaders(handlerFunc http.HandlerFunc, authEnabled bool) http.HandlerFunc {
  64 +func HttpPreProc(handlerFunc http.HandlerFunc, authEnabled bool) http.HandlerFunc {
65 65 return func(w http.ResponseWriter, req *http.Request) {
66 66 // @TODO: check Content-type header (must be application/json)
67 67 // ctype := w.Header.Get("Content-Type")
... ...