diff --git a/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/AbstractCodeGenerator.java b/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/AbstractCodeGenerator.java index 096d5ab4..45f61765 100644 --- a/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/AbstractCodeGenerator.java +++ b/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/AbstractCodeGenerator.java @@ -346,7 +346,7 @@ public abstract class AbstractCodeGenerator implements IScriptGenerator, doParseRequest(header, requestBody, responseHeader.getRespCode(), responseHeader.getContentType()); dealWithHtmlResponse(header, responseParser); - response.setResponse(responseParser.encodeCoent(doParseHtmlContent(responseParser.getResponseBody(), header.url))); + response.setResponse(responseParser.encodeContent(doParseHtmlContent(responseParser.getResponseBody(), header.url))); setStruts(new String(response.getResponse()).toLowerCase().indexOf( "org.apache.struts.taglib.html.token") > 0); doEndTransaction(); diff --git a/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/ResponseParser.java b/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/ResponseParser.java index 61d31205..7b329e70 100644 --- a/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/ResponseParser.java +++ b/Bench4Q-Recorder/src/main/java/org/bench4q/recorder/httpcapture/generator/ResponseParser.java @@ -149,7 +149,7 @@ public class ResponseParser { } } - public byte[] encodeCoent(String responseBody) { + public byte[] encodeContent(String responseBody) { ContentEncoder contentEncoder = ContentEncoder.createEncoder(this .getResponseHeader().getContentEncoding()); Charset charset = null;