Skip to content

Commit 5683966

Browse files
committed
Defer decoding Base64 binary ID values till requested
1 parent 5e389f6 commit 5683966

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/GraphQLResponse.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,7 @@ IdType Value::release<IdType>()
882882
{
883883
auto stringValue = std::move(stringData.string);
884884

885-
return internal::Base64::validateBase64(stringValue)
886-
? IdType { internal::Base64::fromBase64(stringValue) }
887-
: IdType { std::move(stringValue) };
885+
return IdType { std::move(stringValue) };
888886
}
889887
}
890888
else if (std::holds_alternative<IdType>(_data))

0 commit comments

Comments
 (0)