Skip to content

Commit 2c8e063

Browse files
author
Grahame Grieve
committed
Don't double basae64 encode SHL content
1 parent f841b4d commit 2c8e063

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/endpoint_shl.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@ function TSHLWebServer.processManifest(request: TIdHTTPRequestInfo; response: TI
197197
f := resp.forceArr['files'].addObject;
198198
f.str['contentType'] := c.GetColStringByName('mimetype');
199199
f.str['location'] := 'https://'+common.host+PathWithSlash+'data/'+uuid;
200-
b64 := EncodeBase64(c.GetColBlobByName('blob'));
200+
b64 := c.GetColStringByName('blob'); // it's already base64 encoded
201+
// EncodeBase64(c.GetColBlobByName('blob'));
201202
if (not req.has('embeddedLengthMax')) or (b64.Length < req.int['embeddedLengthMax']) then
202203
f.str['embedded'] := b64;
203204
response.ResponseNo := 200;

0 commit comments

Comments
 (0)