h3xstream/http-script-generator

Fix empty post data bug

Closed this issue · 0 comments

The second condition is wrong:

    if (requestBodyString.indexOf("=") == -1) {
        //In the case of RAW body (json, binary, etc.)
        paramsPost = new HashMap<String, String>();
        if(!"".equals(requestBodyString)) {
            requestBodyString = null;
        }
    }