Open mad85 opened 6 years ago
I applied this patch and received this error on line 1141: [DCC Error] RestClient.pas(1141): E2018 Record, object or class type required [DCC Fatal Error] D2010_RestApi.dpk(46): F2063 Could not compile used unit '....\src\RestClient.pas'
@jzapater
On TMultipartFormData.AddFieldContent procedure, replace the line:
if Field.FieldType.Name.Equals(TMultiPartFormAttachment.ClassName) then
by
if SameText(Field.FieldType.Name, TMultiPartFormAttachment.ClassName) then
It should compile and build the package.
Regards.