Skip to content

Commit 49dcf8a

Browse files
committed
wip
1 parent 5f9a96c commit 49dcf8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/renkuapi/auth.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func (auth *RenkuApiAuth) get(ctx context.Context, url string, result any) (resp
207207
if resp.Header.Get("Content-Type") == jsonContentType {
208208
parseErr = tryParseResponse(resp, result)
209209
} else {
210-
return resp, fmt.Errorf("Expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
210+
return resp, fmt.Errorf("expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
211211
}
212212
if resp.StatusCode >= 200 && resp.StatusCode < 300 && parseErr != nil {
213213
return resp, parseErr
@@ -234,7 +234,7 @@ func (auth *RenkuApiAuth) postForm(ctx context.Context, url string, data url.Val
234234
if resp.Header.Get("Content-Type") == jsonContentType {
235235
parseErr = tryParseResponse(resp, result)
236236
} else {
237-
return resp, fmt.Errorf("Expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
237+
return resp, fmt.Errorf("expected '%s' but got response with content type '%s'", jsonContentType, resp.Header.Get("Content-Type"))
238238
}
239239
if resp.StatusCode >= 200 && resp.StatusCode < 300 && parseErr != nil {
240240
return resp, parseErr

0 commit comments

Comments
 (0)