Skip to content
Snippets Groups Projects
Unverified Commit 9a0c3ed6 authored by Max Adamo's avatar Max Adamo
Browse files

test

parent 9cd905cd
Branches
Tags
No related merge requests found
......@@ -79,7 +79,8 @@ func triggerPuppet(w http.ResponseWriter, req *http.Request) {
unauthorizedMsg := fmt.Sprintln("{\n \"status\": \"Unauthorized\",\n \"response\": 401\n}")
unavailableMsg := fmt.Sprintln("{\n \"status\": \"KO\",\n \"response\": 503\n}")
w.Header().Set("Content-Type", "application/json")
req.Header.Add("Content-Type", "application/json")
//w.Header().Set("Content-Type", "application/json")
if authToken != bearerToken {
http.Error(w, unauthorizedMsg, http.StatusUnauthorized)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment