Merge pull request #994 from wdahlenburg/base64-helper

Support Raw Base64 Encoding for Deserialization Helpers
dev
Sandeep Singh 2021-09-03 12:14:13 +05:30 committed by GitHub
commit 8011b9f721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ func gadgetEncodingHelper(returnData []byte, encoding string) string {
return ""
}
return urlsafeBase64Encode(buffer.Bytes())
case "base64-raw":
return base64.StdEncoding.EncodeToString(returnData)
default:
return urlsafeBase64Encode(returnData)
}