Skip to content

Commit 1c42d15

Browse files
authored
Merge pull request #42 from kody-abe/patch-1
Correctly update update_method
2 parents c27f9f8 + 75f368b commit 1c42d15

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)