Skip to content
Snippets Groups Projects
Commit fcb72ad7 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: close correctly the grdf payload

parent b41b36c5
Branches
No related tags found
No related merge requests found
Pipeline #9379 failed
...@@ -460,9 +460,12 @@ func main() { ...@@ -460,9 +460,12 @@ func main() {
if len(s[1]) > 0 { if len(s[1]) > 0 {
payload, _ := base64.StdEncoding.DecodeString(s[1]) payload, _ := base64.StdEncoding.DecodeString(s[1])
log.Debug(string(payload)) log.Debug(string(payload))
// payload = append(payload, []byte{125}...) // Check if the payload is well ended
// log.Debug(string(payload)) if payload[len(payload)-1] != 125 {
payload = append(payload, []byte{125}...)
}
// Decode the payload from the token // Decode the payload from the token
if payload
var token GrdfConsentementToken var token GrdfConsentementToken
err := json.Unmarshal(payload, &token) err := json.Unmarshal(payload, &token)
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment