Added decode error codes and exceptions

This commit is contained in:
Arun M 2017-12-04 13:17:48 +05:30
parent 234411a550
commit 9e69389caf
7 changed files with 131 additions and 18 deletions

View file

@ -282,7 +282,8 @@ std::string base64_uri_decode(const char* data, size_t len)
size_t i = 0;
for (; i < len; ++i) {
for (; i < len; ++i)
{
switch (data[i]) {
case '-':
uri_dec[i] = '+';