Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Add Golang example - #5

Open
SevereCloud wants to merge 1 commit into
VKCOM:masterfrom
SevereCloud:patch-1
Open

Add Golang example#5
SevereCloud wants to merge 1 commit into
VKCOM:masterfrom
SevereCloud:patch-1

Conversation

@SevereCloud

Copy link
Copy Markdown

valid_test.go полностью покрывающий isValid

@dvmazur

dvmazur commented Apr 11, 2020

Copy link
Copy Markdown

The function is not working correctly. You forgot to encode the URL before feeding it to HMAC. I suggest you change the _, _ = mac.Write([]byte(strings.Join(vkParams, "&"))) line to _, _ = mac.Write([]byte(url.PathEscape(strings.Join(vkParams, "&")))).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants