Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 2a89a15

Browse files
CTllolafriks
authored andcommitted
Fix request URL in ServerVersion function (#71)
"api/v1" is useless, it is already included in func (c *Client)getParsedResponse
1 parent efc028e commit 2a89a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitea/miscellaneous.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ type ServerVersion struct {
5252
// ServerVersion returns the version of the server
5353
func (c *Client) ServerVersion() (string, error) {
5454
v := ServerVersion{}
55-
return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v)
55+
return v.Version, c.getParsedResponse("GET", "/version", nil, nil, &v)
5656
}

0 commit comments

Comments
 (0)