Skip to content

Commit 4dff2d0

Browse files
committed
more fixes
1 parent b7ec67e commit 4dff2d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/keycloak/rest.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (client *KeycloakClient) GetJSON(ctx context.Context, url string, result an
3030
if resp.Header.Get("Content-Type") == jsonContentType {
3131
parseErr = tryParseResponse(resp, result)
3232
} else {
33-
return resp, fmt.Errorf("Expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
33+
return resp, fmt.Errorf("expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
3434
}
3535
if resp.StatusCode >= 200 && resp.StatusCode < 300 && parseErr != nil {
3636
return resp, parseErr
@@ -67,7 +67,7 @@ func (client *KeycloakClient) PostJSON(ctx context.Context, url string, body any
6767
// No content
6868
return resp, nil
6969
} else {
70-
return resp, fmt.Errorf("Expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
70+
return resp, fmt.Errorf("expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
7171
}
7272
if resp.StatusCode >= 200 && resp.StatusCode < 300 && parseErr != nil {
7373
return resp, parseErr

0 commit comments

Comments
 (0)