Replies: 4 comments 12 replies
-
What version of RESTEasy are you using? |
Beta Was this translation helpful? Give feedback.
-
@mqchen-ws Are you seeing some kind of an error? While the headers on the invocation may not have the boundary set, it's set in the request. If I dump the request headers I see something like:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for all the information on this. I've created https://issues.redhat.com/browse/RESTEASY-3532. |
Beta Was this translation helpful? Give feedback.
-
This should fix it #4282. The issue was the headers were set before the content was written, which seems to be where he boundary is added to the header. |
Beta Was this translation helpful? Give feedback.
-
Version: 6.2.9.Final
Example code
The entity is of type
MultipartFormdataOutput
and it has aboundary
parameter which looks like a randomly generated UUID. However, inInvocation.headers
theContent-Type
is set to onlymultipart/form-data
, without the boundary.Explicitly constructing the media type and setting the
boundary
as a parameter, instead of usingMULTIPART_FORM_DATA_TYPE
, works:Since the entity already knows the boundary, it seems like the
buildPost
should be able to set the boundary without explicitly constructing the media type?Beta Was this translation helpful? Give feedback.
All reactions