REST Connect request cannot modify first Content-Disposition header
When sending a Connect-REST request with attachment Pega always set first Content-Disposition header as follows.
Wed Apr 04 03:22:41 CDT 2018:INFO:--8dZGfHO7gPBZCjmgYUr04__I9QM0vQR
Content-Disposition: form-data; name="PostData"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
{JSON request here}
--8dZGfHO7gPBZCjmgYUr04__I9QM0vQR
Content-Disposition: form-data; name="attachments"; filename="leftmenubar_bg.jpg"
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
****************
This happened because Activity: pyInvokeRESTConnector always set first entity as "PostData".
((com.pega.apache.http.entity.mime.MultipartEntity) entity).addPart("PostData", new com.pega.apache.http.entity.mime.content.StringBody(messageData));
Is there any option available to modify first Content-Disposition header ?
Pega version 7.2