Skip to content

Commit

Permalink
Merge pull request #42 from kody-abe/patch-1
Browse files Browse the repository at this point in the history
Correctly update update_method
  • Loading branch information
DRuggeri authored Jul 3, 2019
2 parents c27f9f8 + 75f368b commit 1c42d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion restapi/api_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewAPIClient(opt *apiClientOpt) (*api_client, error) {
opt.read_method = "GET"
}
if opt.update_method == "" {
opt.create_method = "PUT"
opt.update_method = "PUT"
}
if opt.destroy_method == "" {
opt.destroy_method = "DELETE"
Expand Down

0 comments on commit 1c42d15

Please sign in to comment.