diff --git a/include/common/htx.h b/include/common/htx.h index 0eabf24001..9f339b877f 100644 --- a/include/common/htx.h +++ b/include/common/htx.h @@ -727,7 +727,7 @@ static inline struct htx *htx_from_buf(struct buffer *buf) /* Upate accordingly to the HTX message */ static inline void htx_to_buf(struct htx *htx, struct buffer *buf) { - if (!htx->used) { + if (!htx->used && !(htx->flags & HTX_FL_PARSING_ERROR)) { htx_reset(htx); b_set_data(buf, 0); }