yp05327 authored and GitHub committed 2024-01-15 07:43:53 +00:00
1 parent 5d3fdd1212
commit c7e4629c02
3 files changed
+9

No files matched your search

+3
View File
@@ -27,5 +27,8 @@ func AuthorizedPublicKeyByContent(ctx context.Context, content string) (string,
req := newInternalRequest(ctx, reqURL, "POST")
req.Param("content", content)
resp, extra := requestJSONResp(req, &responseText{})
if resp == nil {
return "", extra
}
return resp.Text, extra
}