Support raw base64 encoding

dev
Wyatt Dahlenburg 2021-09-01 11:59:51 -05:00
parent 3fb9972114
commit 693aec37d8
1 changed files with 2 additions and 0 deletions

View File

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