Skip to content

Commit

Permalink
Merge pull request #179 from tianlu-root/master
Browse files Browse the repository at this point in the history
fix: http data provider response parser param error, #177
  • Loading branch information
scottsut authored Nov 9, 2021
2 parents a3e5223 + 5eb0820 commit a183144
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ private HttpRequestParam convert2RequestParam(Map<String, Object> config) throws

httpRequestParam.setContentType(config.getOrDefault(CONTENT_TYPE, "application/json").toString());

String parserName = config.getOrDefault(RESPONSE_PARSER, DEFAULT_PARSER).toString();
String parserName = config.get(RESPONSE_PARSER).toString();
if (StringUtils.isBlank(parserName)) {
parserName = DEFAULT_PARSER;
}

Class<? extends HttpResponseParser> aClass = (Class<? extends HttpResponseParser>) Class.forName(parserName);

Expand Down

0 comments on commit a183144

Please sign in to comment.