Skip to content

Commit

Permalink
Fix Bytes to be written to the stream exceed the Content-Length bytes…
Browse files Browse the repository at this point in the history
… size specified. (#108)
  • Loading branch information
Bertverbeek4PS authored Apr 16, 2024
2 parents 6b7a81c + 597ffe9 commit 3a48f51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion businessCentral/app/src/Http.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ codeunit 82563 "ADLSE Http"
ADLSESetup: Record "ADLSE Setup";
Headers: HttpHeaders;
begin
HttpContent.WriteFrom(Body);
if (ADLSESetup.GetStorageType() = ADLSESetup."Storage Type"::"Azure Data Lake") or
(ADLSESetup.GetStorageType() = ADLSESetup."Storage Type"::"Microsoft Fabric") and (not ContentTypeJson)
then
HttpContent.WriteFrom(Body);

HttpContent.GetHeaders(Headers);

if ContentTypeJson then begin
Expand Down

0 comments on commit 3a48f51

Please sign in to comment.