summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fhp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fhp.c b/fhp.c
index 237345b..428fc38 100644
--- a/fhp.c
+++ b/fhp.c
@@ -550,6 +550,9 @@ retry:
if (!fhp_buf_push(fhp, FHP_TOKEN_HEADER_NAME_FRAGMENT, byte))
return FHP_ERR_CB;
+ // set state
+ fhp->state = FHP_STATE_HEADER_NAME;
+
break;
case '\r':
// flush buffer