-
Bug
-
Resolution: Done
-
Major
-
4.0.0.Beta2
-
None
In resteasy-jsapi/src/main/resources/resteasy-client.js line 111
allows a entity of type FormData to be "stringify". The community says this is not good.
}else if(this.entity instanceof Object){ if(!contentTypeSet || REST._isJSONMIME(contentTypeSet)) data = JSON.stringify(this.entity); }
The code should be
}else if(this.entity instanceof Object && !(this.entity instanceof FormData)){ if(!contentTypeSet || REST._isJSONMIME(contentTypeSet)) data = JSON.stringify(this.entity); }