Skip to content

Commit

Permalink
docs: remove XXX as CTFd documentation improved
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Apr 10, 2024
1 parent bb0c3e8 commit 367ebb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (client *Client) Do(req *http.Request) (*http.Response, error) {
req.Header.Set("Content-Type", "application/json") // XXX this is necessary for GET method but should not, when call uses the APIProvider behaviour
}
if client.apiKey != "" {
req.Header.Set("Authorization", "Token "+client.apiKey) // XXX the "Token" value should be properly documented in API
req.Header.Set("Authorization", "Token "+client.apiKey)
} else {
req.Header.Set("CSRF-Token", client.nonce)
req.Header.Set("Cookie", "session="+client.session)
Expand Down

0 comments on commit 367ebb4

Please sign in to comment.