codereview feedback

This commit is contained in:
Tim Chamberlain
2025-03-28 16:47:06 -05:00
parent 473cc9c0ae
commit 9cf25ed45c
2 changed files with 8 additions and 11 deletions

View File

@ -26,7 +26,7 @@
<Logger name="org.quartz" level="INFO" />
<Logger name="liquibase" level="INFO" />
<Logger name="com.amazonaws" level="INFO" />
<Root level="All">
<Root level="all">
<AppenderRef ref="SystemOutAppender"/>
<AppenderRef ref="SyslogAppender"/>
<!-- <AppenderRef ref="LogFileAppender"/> -->

View File

@ -60,18 +60,16 @@ public class QHttpResponse
*******************************************************************************/
public QHttpResponse(HttpResponse httpResponse, boolean readContentAsBytes) throws Exception
{
setGeneralHttpResponseData(httpResponse);
if(!readContentAsBytes)
{
new QHttpResponse(httpResponse);
return;
}
setGeneralHttpResponseData(httpResponse);
if(this.statusCode == null || this.statusCode != 204)
{
if(readContentAsBytes)
{
this.contentBytes = httpResponse.getEntity().getContent().readAllBytes();
}
else
{
this.content = EntityUtils.toString(httpResponse.getEntity());
}
this.contentBytes = httpResponse.getEntity().getContent().readAllBytes();
}
}
@ -84,7 +82,6 @@ public class QHttpResponse
public QHttpResponse(HttpResponse httpResponse) throws Exception
{
setGeneralHttpResponseData(httpResponse);
if(this.statusCode == null || this.statusCode != 204)
{
this.content = EntityUtils.toString(httpResponse.getEntity());