Skip to content

Commit 510b338

Browse files
committed
Handle enumeration value 'chunk_complete'. If not, the default handle may assert failed. And use break instead of return false for the default handle.
1 parent 0244af5 commit 510b338

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/http_chunk_checker.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ class http_chunk_checker {
120120
continue;
121121
}
122122
break;
123+
case http_chunk_check_state::chunk_complete:
124+
break;
123125
default:
124126
assert(false);
125-
return false;
127+
break;
126128
}
127129
this->state = http_chunk_check_state::chunk_check_failed;
128130
return false;

0 commit comments

Comments
 (0)