Skip to content

Commit 75f368b

Browse files
authored
Correctly update update_method
if `update_method` is not defined the client is using `update_method`. Looks like a copy paste miss.
1 parent c27f9f8 commit 75f368b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

restapi/api_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func NewAPIClient(opt *apiClientOpt) (*api_client, error) {
8484
opt.read_method = "GET"
8585
}
8686
if opt.update_method == "" {
87-
opt.create_method = "PUT"
87+
opt.update_method = "PUT"
8888
}
8989
if opt.destroy_method == "" {
9090
opt.destroy_method = "DELETE"

0 commit comments

Comments
 (0)