Skip to content

Commit

Permalink
Merge pull request #4 from daedongbread/develop
Browse files Browse the repository at this point in the history
fix: 304 code 예외 제외 에러 수정
  • Loading branch information
grand7070 authored Nov 14, 2023
2 parents bf3abf7 + 342a2e2 commit 6abd772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exports.handler = async (event, context, callback) => {
return callback(null, response);
}

if (Number(response.status) !== 200 || Number(response.status) !== 304) {
if (Number(response.status) !== 200 && Number(response.status) !== 304) {
console.error(`response status is ${response.status}, not 200 or 304`);
return callback(null, response);
}
Expand Down

0 comments on commit 6abd772

Please sign in to comment.