fix the bug, record start recording request and add same parent's
behavior to same batch
This commit is contained in:
parent
ef31716fcd
commit
c6c6a0f942
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue