From c6c6a0f94286b27e210ddbc68aef3cc06e37a75d Mon Sep 17 00:00:00 2001 From: hmm Date: Mon, 15 Sep 2014 16:32:46 +0800 Subject: [PATCH] fix the bug, record start recording request and add same parent's behavior to same batch --- .../recorder/httpcapture/generator/AbstractCodeGenerator.java | 2 +- .../bench4q/recorder/httpcapture/generator/ResponseParser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;