mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
parent
a203d8ebbf
commit
12a3c70860
13 changed files with 34 additions and 36 deletions
|
@ -160,7 +160,7 @@ func (p *Papi) GetPermissions(ctx context.Context) (PapiPermCheckSuccess, error)
|
|||
httpClient := p.apiClient.GetClient()
|
||||
papiCheckUrl := fmt.Sprintf("%s%s%s", p.URL, types.PAPIVersion, types.PAPIPermissionsUrl)
|
||||
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, papiCheckUrl, nil)
|
||||
req, err := http.NewRequestWithContext(ctx, http.MethodGet, papiCheckUrl, http.NoBody)
|
||||
if err != nil {
|
||||
return PapiPermCheckSuccess{}, fmt.Errorf("failed to create request: %w", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue