Commit 3a5383589b7de961fdb341054285a989bfe12722
1 parent
6ec91280b2
Exists in
master
and in
1 other branch
Improved documentation.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
http_utility.go
... | ... | @@ -54,7 +54,8 @@ func UnauthorizedResponse(w http.ResponseWriter, req *http.Request) { |
54 | 54 | } |
55 | 55 | |
56 | 56 | // TODO: Check for content type |
57 | -// Sets common headers, checks for token validity and performs access control. | |
57 | +// WrapHandler sets common headers, checks for token validity and performs access control. | |
58 | +// If authentication passes it calls the handlerFunc. | |
58 | 59 | func WrapHandler(handlerFunc http.HandlerFunc, auth bool) http.HandlerFunc { |
59 | 60 | return func(w http.ResponseWriter, req *http.Request) { |
60 | 61 | w.Header().Set("Access-Control-Allow-Origin", "*") | ... | ... |