diff options
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/api/api.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/api/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go index c1fb3dea..47acd445 100644 --- a/vendor/github.com/SevereCloud/vksdk/v2/api/api.go +++ b/vendor/github.com/SevereCloud/vksdk/v2/api/api.go @@ -152,7 +152,7 @@ type Params map[string]interface{} // cyrillic symbols will be transliterated automatically. // Numeric format from account.getInfo is supported as well. // -// p.Lang(object.LangRU) +// p.Lang(object.LangRU) // // See all language code in module object. func (p Params) Lang(v int) Params { @@ -248,7 +248,7 @@ func (vk *VK) DefaultHandler(method string, sliceParams ...Params) (Response, er rawBody := bytes.NewBufferString(query.Encode()) - req, err := http.NewRequestWithContext(ctx, "POST", u, rawBody) + req, err := http.NewRequestWithContext(ctx, http.MethodPost, u, rawBody) if err != nil { return response, err } |