Skip to content

Commit

Permalink
should not store body/header if setting is forfail and result is sucess
Browse files Browse the repository at this point in the history
  • Loading branch information
brookshi committed Mar 12, 2018
1 parent 9fbfe9b commit b5193cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/run_engine/schedule_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class ScheduleRunner {
private async clearRunResult(runResult: RunResult) {
const storeContent = Setting.instance.scheduleStoreContent;
const isImg = ValidateUtil.isResImg(runResult.headers);
if (isImg || storeContent === 'none' || (storeContent === 'forFail' && !this.isSuccess(runResult))) {
if (isImg || storeContent === 'none' || (storeContent === 'forFail' && this.isSuccess(runResult))) {
runResult.body = '';
runResult.headers = {};
}
Expand Down

0 comments on commit b5193cd

Please sign in to comment.