Skip to content

Commit

Permalink
Forbid duplicated stale-if-error in response
Browse files Browse the repository at this point in the history
  • Loading branch information
const-t committed Nov 15, 2024
1 parent 3c9f372 commit f59bdca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fw/http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -11309,6 +11309,9 @@ do { \
Resp_I_CC_StaleIfErrorV);

__FSM_STATE(Resp_I_CC_StaleIfErrorV) {
if (unlikely(resp->cache_ctl.flags
& TFW_HTTP_CC_STALE_IF_ERROR))
__FSM_EXIT(T_DROP);
__fsm_sz = __data_remain(p);
__fsm_n = parse_uint_list(p, __fsm_sz, &parser->_acc);
if (__fsm_n == CSTR_POSTPONE)
Expand Down

0 comments on commit f59bdca

Please sign in to comment.