hutool-http链式调用参数丢失
2020-08-26 11:10:30 1448
版本hutool-http-5.2.5
如下代码,pathParams的参数会丢失
HttpRequest request =
cn.hutool.http.HttpUtil.createRequest(method, url).timeout(TIMEOUT)
.form(pathParams).body(body).header(TOKEN_HEADER, TOKEN);
需要将form后移
HttpRequest request =
cn.hutool.http.HttpUtil.createRequest(method, url).timeout(TIMEOUT)
.body(body).form(pathParams).header(TOKEN_HEADER, TOKEN);