jdi-testing / jdi-dark

Powerful Framework for Backend Automation Testing on Java (Rest, Soap, WebSocket)
https://jdi-docs.github.io/jdi-dark/
MIT License
39 stars 16 forks source link

Query params are lost when sending a PATCH request with Multipart/form-data #511

Open LuroyJenkins opened 1 year ago

LuroyJenkins commented 1 year ago

I found a problem - when sending a PATCH request containing Multipart/form-data, Query Params are lost.

Example:

` public static RestResponse request(RestMethod method, Map<String, String> headers, Map<String, String> params, String body, ArrayList multipartData, Object... pathParams) {

    synchronized (method.restMethod()) {
        return method.pathParams(pathParams).call(rd -> {
            headers.forEach(rd.headerUpdater()::add);
            params.forEach(rd.queryParamsUpdater()::add);
            rd.body = body;
            multipartData.forEach(rd::setMultiPart);
        });
 }

}