Skip to content

Commit d8b6427

Browse files
committed
uses the http.MethodPost instead of a string
1 parent 73937cf commit d8b6427

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

definitions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (c *Client) UploadDefinitions(p *ExportedDefinitions) (res *http.Response,
7070
if err != nil {
7171
return nil, err
7272
}
73-
req, err := newRequestWithBody(c, "POST", "definitions", body)
73+
req, err := newRequestWithBody(c, http.MethodPost, "definitions", body)
7474
if err != nil {
7575
return nil, err
7676
}

0 commit comments

Comments
 (0)