fix the bug, record start recording request and add same parent's

behavior to same batch
This commit is contained in:
hmm 2014-09-15 16:32:46 +08:00
parent ef31716fcd
commit c6c6a0f942
2 changed files with 2 additions and 2 deletions

View File

@ -346,7 +346,7 @@ public abstract class AbstractCodeGenerator implements IScriptGenerator,
doParseRequest(header, requestBody, responseHeader.getRespCode(), responseHeader.getContentType()); doParseRequest(header, requestBody, responseHeader.getRespCode(), responseHeader.getContentType());
dealWithHtmlResponse(header, responseParser); 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( setStruts(new String(response.getResponse()).toLowerCase().indexOf(
"org.apache.struts.taglib.html.token") > 0); "org.apache.struts.taglib.html.token") > 0);
doEndTransaction(); doEndTransaction();

View File

@ -149,7 +149,7 @@ public class ResponseParser {
} }
} }
public byte[] encodeCoent(String responseBody) { public byte[] encodeContent(String responseBody) {
ContentEncoder contentEncoder = ContentEncoder.createEncoder(this ContentEncoder contentEncoder = ContentEncoder.createEncoder(this
.getResponseHeader().getContentEncoding()); .getResponseHeader().getContentEncoding());
Charset charset = null; Charset charset = null;