Skip to content

Commit

Permalink
Cleaning up the cherry pick
Browse files Browse the repository at this point in the history
  • Loading branch information
a-roberts committed May 15, 2020
1 parent dbd1543 commit e175359
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/endpoints/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,3 @@ func handleSecretsResponse(response *restful.Response, forwardResponse rest.Resu
response.Header().Add("Content-Type", restful.MIME_JSON)
response.WriteHeaderAndEntity(*statusCode, responseObject)
}

func (r Resource) GetToken(request *restful.Request, response *restful.Response) {
response.Header().Add("X-CSRF-Token", csrf.Token(request.Request))
response.Write([]byte("OK"))
}

0 comments on commit e175359

Please sign in to comment.